public static double Nrm2(MatrixExpression a) { var i = a.Evaluate(); var r = Blas.nrm2(i.Length, i.Array, 0, 1); if (a is not MatrixInput) { i.Dispose(); } return(r); }