public static double Min(SuperArray arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_min_all(out r, out i, arr.variable._ptr)); return(r); }
public static Complex Min(AFArray arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_min_all(out r, out i, arr._ptr)); return(new Complex(r, i)); }
public static returnType MinAll <returnType>(Array arr) { double r, i; Internal.VERIFY(AFAlgorithm.af_min_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))); } }