Vector.ElementwiseMultiplyInto<T> Method

Multiplies a vector element-wise by another vector.

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
public static Vector<T> ElementwiseMultiplyInto<T>(
	Vector<T> left,
	Vector<T> right,
	Vector<T>? result
)

Parameters

left  Vector<T>
A vector.
right  Vector<T>
A vector.
result  Vector<T>
The vector that is to hold the result. May be null.

Type Parameters

T

Return Value

Vector<T>
A 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