m3sh.linalg.

norm_sqrd#

norm_sqrd(u)#

Squared length of vector.

Parameters:
undarray, shape (n,)

Vector with n components.

Returns:
float

Squared Euclidean length of the vector u, i.e., the inner product of u with itself.