public static double Max(SuperArray arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_max_all(out r, out i, arr.variable._ptr)); return(r); }
public static Complex Max(AFArray arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_max_all(out r, out i, arr._ptr)); return(new Complex(r, i)); }
public static returnType MaxAll <returnType>(Array arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_max_all(out r, out i, arr._ptr)); if (typeof(returnType) == typeof(Complex)) { return((returnType)Convert.ChangeType(new Complex(r, i), typeof(returnType))); } else { return((returnType)Convert.ChangeType(r, typeof(returnType))); } }