function Max: Double;
Maximum of all non-zero elements.
Returns: Double
Examples
var a: Matrix;
b: double;
begin
a.SetIt(2,2,False,[1,2,3,4]);
b := a.Max; // b = 4
end;
var
a: Matrix;
result: double;
begin
a := [[1.0, 2.0], [3.0, 4.0]];
result := a.Max;
if Abs(result - 4.0) > 1e-10 then
raise Exception.Create('Matrix.Max: expected 4.0, got ' + result.ToString);
end;
See Also: TSparseMtx.Min, TSparseMtx.Maxc