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

calculate_norms_ragged#

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

Calculates the norm of an array of cartesian vectors. For use with map() when applied to a ragged array.

Parameters:

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

Returns:

norms – Array of vector norms.

Return type:

numpy.ndarray