コード例 #1
0
        public static returnType ProductAll <returnType>(Array arr, double nanval)
        {
            double r, i;

            Internal.VERIFY(AFAlgorithm.af_product_nan_all(out r, out i, arr._ptr, nanval));
            if (typeof(returnType) == typeof(Complex))
            {
                return((returnType)Convert.ChangeType(new Complex(r, i), typeof(returnType)));
            }
            else
            {
                return((returnType)Convert.ChangeType(r, typeof(returnType)));
            }
        }