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