normed
- ssapy.utils.normed(arr)[source][source]
Normalize an array along the last axis to have unit length.
This function computes the normalized version of the input array by dividing each vector along the last axis by its Euclidean norm. The normalization ensures that the resulting vectors have a magnitude of 1.
Parameters:
- arrarray-like
Input array where normalization is applied along the last axis. The array can have any shape, with the last axis representing the vector components.
Returns:
- normalizedarray-like
The normalized array with unit-length vectors along the last axis. The output shape matches the input shape.