예제 #1
0
        public static returnType MinAll <returnType>(Array arr, out uint idx)
        {
            double r, i;

            Internal.VERIFY(AFAlgorithm.af_imin_all(out r, out i, out idx, 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)));
            }
        }