Matrix.ElementwiseMultiplyInto<T>(Vector<T>, Dimension, Vector<T>, Matrix<T>) Method

Multiplies the elements of two broadcast vectors along the specified dimension elementwise.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> ElementwiseMultiplyInto<T>(
	Vector<T> left,
	Dimension leftBroadcastDimension,
	Vector<T> right,
	Matrix<T> result
)

Parameters

left  Vector<T>
A matrix.
leftBroadcastDimension  Dimension
A value that specifies whether the elements in left should be broadcast across rows or columns.
right  Vector<T>
A vector.
result  Matrix<T>
The matrix that is to hold the result. May be null.

Type Parameters

T

Return Value

Matrix<T>
A matrix whose elements are the product of the corresponding elements of left and right.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException The dimensions of result are not compatible with the length of left or right.

See Also