Check out the Hyperspy Workshop May 13-17, 2024 Online

calculate_norms#

pyxem.utils.vectors.calculate_norms(z)[source]#

Calculates the norm of an array of cartesian vectors. For use with map().

Parameters:

z (numpy.ndarray) – Array of cartesian vectors.

Returns:

norms – Array of vector norms.

Return type:

numpy.ndarray