dreye.l2norm#

dreye.l2norm(arr, axis=-1, keepdims=False)[source]#

Calculate the L2-norm of an array along a given axis.

Parameters:
arrndarray

Array to calculate the L2-norm of.

axisint, optional

Axis to calculate the norm along, default is -1.

keepdimsbool, optional

Whether to keep the original number of dimensions, default is False.

Returns:
ndarray

L2-norm of the array along the given axis.