matrixNormTwo function
Two norm return maximum singular value.
Examples
var a = Array2d([
Array([1, 2, 3]),
Array([1, 2, 3]),
Array([1, 2, 3]),
]);
print(a.norm2());
/* output:
6.496425037213701
*/
Implementation
double matrixNormTwo(Array2d a) {
return SVD(a).norm2();
}