ConstantMatrix<T>.ElementwiseMultiplyCore Method

Multiplies two matrices element-wise.

Definition

Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3
C#
protected override Matrix<T> ElementwiseMultiplyCore(
	Matrix<T> other,
	Matrix<T>? result
)

Parameters

other  Matrix<T>
The second matrix.
result  Matrix<T>
The matrix that is to hold the result. May be null.

Return Value

Matrix<T>
A matrix whose elements are the sum of the corresponding elements of this matrix and other.

Exceptions

DimensionMismatchException

This matrix and other do not have the same length.

See Also