Vector.ElementwiseMultiply<T> Method

Multiplies the elements of a vector by the corresponding elements of another vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
public static Vector<T> ElementwiseMultiply<T>(
	Vector<T> left,
	Vector<T> right
)

Parameters

left  Vector<T>
The first vector.
right  Vector<T>
The second vector.

Type Parameters

T

Return Value

Vector<T>
A new vector whose elements are equal to the products of the elements of left and right .

Exceptions

ArgumentNullException

left is null.

-or-

right is null.

DimensionMismatchException

The length of left does not equal the length of right.

See Also