s_dot_product() private method

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