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

Adds two matrices after applying the specified operation to the operands.

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,
	TransposeOperation leftOperation,
	Matrix<T> right,
	TransposeOperation rightOperation,
	Matrix<T> result
)

Parameters

left  Matrix<T>
The first matrix.
leftOperation  TransposeOperation
A TransposeOperation value that indicates which operation, if any, should be performed on the matrix left before adding.
right  Matrix<T>
The second matrix.
rightOperation  TransposeOperation
A TransposeOperation value that indicates which operation, if any, should be performed on the matrix right before adding.
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 as transformed by leftOperation and rightOperation, respectively, are not compatible.

See Also