Dense Matrix<T, TSlice, TStorage2D>.Elementwise Multiply Core Method
Multiplies two matrices element-wise.
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
C#
A matrix whose elements are the sum of the corresponding elements of this matrix and other.
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
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
Dimension | This matrix and other do not have the same length. |