normalize: Normalize a matrix or nd-array
Description
Normalize a matrix or nd-array
Usage
normalize(x, axis = -1, order = 2)
Arguments
x
Matrix or array to normalize
axis
Axis along which to normalize
order
Normalization order (e.g. 2 for L2 norm)
Value
A normalized copy of the array.