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