c_dot_product() private method

private c_dot_product ( int n, Complex32 x, Complex32 y ) : Complex32
n int
x Complex32
y Complex32
return Complex32
Exemplo n.º 1
0
        public override Complex32 DotProduct(Complex32[] x, Complex32[] 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.c_dot_product(x.Length, x, y));
        }
Exemplo n.º 2
0
        public override Complex32 DotProduct(Complex32[] x, Complex32[] 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.c_dot_product(x.Length, x, y));
        }