Matrix<T>.AddScaledProductInPlace Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

Overload List

AddScaledProductInPlace(T, Matrix<T>, Matrix<T>) Adds a multiple of the scaled product of two matrices to this matrix.
AddScaledProductInPlace(T, Matrix<T>, TransposeOperation, Matrix<T>, TransposeOperation) Adds the scaled product of two matrices to another matrix.

AddScaledProductInPlace(T, Matrix<T>, Matrix<T>)

Adds a multiple of the scaled product of two matrices to this matrix.
C#
public Matrix<T> AddScaledProductInPlace(
	T factor,
	Matrix<T> matrix1,
	Matrix<T> matrix2
)

Parameters

factor  T
Multiplier for the matrix product.
matrix1  Matrix<T>
The first matrix.
matrix2  Matrix<T>
The second matrix.

Return Value

Matrix<T>
A reference to this matrix.

Remarks

This method uses the BLAS routine DGEMM.

Exceptions

ArgumentNullExceptionmatrix1 is null.

-or-

matrix2 is null.

DimensionMismatchException The dimensions of any of the three matrices involved in this operation are not compatible.

AddScaledProductInPlace(T, Matrix<T>, TransposeOperation, Matrix<T>, TransposeOperation)

Adds the scaled product of two matrices to another matrix.
C#
public Matrix<T> AddScaledProductInPlace(
	T factor,
	Matrix<T> leftFactor,
	TransposeOperation leftOperation,
	Matrix<T> rightFactor,
	TransposeOperation rightOperation
)

Parameters

factor  T
The scale factor for the matrix-matrix product.
leftFactor  Matrix<T>
A matrix that acts as the left operand of the multiplication.
leftOperation  TransposeOperation
The operation to be performed on leftFactor before multiplying.
rightFactor  Matrix<T>
The right operand of the multiplication.
rightOperation  TransposeOperation
The operation to be performed on rightFactor before multiplying.

Return Value

Matrix<T>
A reference to this matrix, after adding factor times the product of leftFactor transformed as specified by leftOperation with rightFactor transformed as specified by rightOperation.

See Also