z_dot_product() private method

private z_dot_product ( int n, System.Numerics.Complex x, System.Numerics.Complex y ) : System.Numerics.Complex
n int
x System.Numerics.Complex
y System.Numerics.Complex
return System.Numerics.Complex
Ejemplo n.º 1
0
        public override Complex DotProduct(Complex[] x, Complex[] y)
        {
            if (y == null)
            {
                throw new ArgumentNullException("y");
            }

            if (x == null)
            {
                throw new ArgumentNullException("x");
            }

            if (x.Length != y.Length)
            {
                throw new ArgumentException(Resources.ArgumentArraysSameLength);
            }

            return(SafeNativeMethods.z_dot_product(x.Length, x, y));
        }
Ejemplo n.º 2
0
        public override Complex DotProduct(Complex[] x, Complex[] y)
        {
            if (y == null)
            {
                throw new ArgumentNullException(nameof(y));
            }

            if (x == null)
            {
                throw new ArgumentNullException(nameof(x));
            }

            if (x.Length != y.Length)
            {
                throw new ArgumentException("The array arguments must have the same length.");
            }

            return(SafeNativeMethods.z_dot_product(x.Length, x, y));
        }