TSparseMtx.Max Method

Double Max

Maximum of all non-zero elements.

Returns: Double

Examples
Matrix a = new Matrix();
a.SetIt(2, 2, false, new double[] { 1.0, 2.0, 3.0, 4.0 });
double result = a.Max();
if (Math.Abs(result - 4.0) > 1e-10)
    throw new Exception("Matrix.Max: expected 4.0, got " + result);
Matrix a;
double b;
a.SetIt(2,2,false,new double[] {1,2,3,4});
b = a.Max; // b = 4
See Also: TSparseMtx.Min, TSparseMtx.Maxc