DataSharp/Mathematics/Vector.cs
/// <summary>
/// Returns a Vector whose values are the element-wise product of <paramref name="vector1" /> and <paramref name="vector2" />.
/// </summary>
/// <param name="vector1">An input Vector.</param>
/// <param name="vector2">The other input Vector.</param>
/// <returns>A Vector whose values are the element-wise product of <paramref name="vector1" /> and <paramref name="vector2" />.</returns>
/// <exception cref="ArgumentNullException">If one of the input Vector is null.</exception>
/// <exception cref="ArgumentException">If 2 input Vector don't have the same length.</exception>
Returns a Vector whose values are the element-wise product of  and .
Returns a Vector whose values are the element - wise product of and .
public static Vector ElementWiseMultiplication(Vector vector1, Vector vector2)
        {
            LengthCheck(vector1, vector2);
            int length = vector1.Count;
            Vector result = new Vector(length);
            for (int i = 0; i < length; i++)
                result[i] = vector1[i] * vector2[i];
            return result;
        }
public static Vector ElementWiseMultiplication ( Vector vector1 , Vector vector2 ) { LengthCheck ( vector1 , vector2 ) ; int length = vector1 . Count ; Vector result = new Vector ( length ) ; for ( int i = 0 ; i < length ; i ++ ) result [ i ] = vector1 [ i ] * vector2 [ i ] ; return result ; }
Returns a Vector whose values are the element-wise product of  and .
Returns a Vector whose values are the element - wise product of and .
// Check 2 input vectors before processing. // Initialize the result vector. // Compute the result and return it.
A Vector whose values are the element-wise product of  and .
A Vector whose values are the element - wise product of and .
If one of the input Vector is null.
If one of the input Vector is null .
If 2 input Vector don't have the same length.
If 2 input Vector don ' t have the same length .
vector1
Vector
An input Vector.
An input Vector .
vector2
Vector
The other input Vector.
The other input Vector .