compat.v0.norm22

compat.v0.norm22(x: ndarray)

Calculates the 2-norm squared.

Parameters:

x (np.ndarray) – The vector to norm and square.