x = [[1, 2, 3], [4, 5, 6], [8, 9, 10], [13, 14, 15]]
import numpy as np
a = np.array(x)
sqrDiff = (a[:-1] - a[1:]) ** 2
np.sqrt(sqrDiff.sum(axis=1))
Calculate euclidean norm of 100 points of n-dimensions?