コード例 #1
0
        public static returnType MaxAll <returnType>(Array arr, out uint idx)
        {
            double r, i;

            Internal.VERIFY(AFAlgorithm.af_imax_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)));
            }
        }