/// <summary> /// Returns the Frobenius norm of matrix <i>A</i>, which is <i>Sqrt(Sum(A[i,j]<sup>2</sup>))</i>. /// </summary> /// <param name="A"></param> /// <returns></returns> public static double NormF(DoubleMatrix2D A) { if (A.Size == 0) { return(0); } return(A.Aggregate(HypotFunction(), Cern.Jet.Math.Functions.DoubleFunctions.Identity)); }