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

Adds two matrices.

Definition

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

Parameters

left  Matrix<T>
The first matrix.
right  Matrix<T>
The second matrix.
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 sum of the corresponding elements of left and right.

Exceptions

ArgumentNullExceptionleft is null

-or-

right is null

DimensionMismatchException The dimensions of left and right are not compatible.

See Also