Calculates the normalization of a tensor.
The tensor
Optional
The type of norm, which can be "L0", "L1", "L2", or "LInfinity"
const result = Chalkboard.tens.normalize([3, 4]); // Returns [0.6, 0.8] Copy
const result = Chalkboard.tens.normalize([3, 4]); // Returns [0.6, 0.8]
Calculates the normalization of a tensor.