Matrix.ElementwiseMultiply<T>(Matrix<T>, Matrix<T>) Method

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

Definition

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

Parameters

left  Matrix<T>
The first matrix.
right  Matrix<T>
The second matrix.

Type Parameters

T

Return Value

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

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

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

See Also