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

Adds the scaled product of two matrices to another matrix.

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
C#
public static Matrix<T> AddScaledProduct<T>(
	this Matrix<T> left,
	T factor,
	Matrix<T> leftFactor,
	TransposeOperation leftOperation,
	Matrix<T> rightFactor,
	TransposeOperation rightOperation
)

Parameters

left  Matrix<T>
The left operand of the addition.
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.

Type Parameters

T

Return Value

Matrix<T>
The sum of left with factor times the product of leftFactor transformed as specified by leftOperation with rightFactor transformed as specified by rightOperation.

Usage Note

In Visual Basic and C#, you can call this method as an instance method on any object of type Matrix<T>. When you use instance method syntax to call this method, omit the first parameter. For more information, see Extension Methods (Visual Basic) or Extension Methods (C# Programming Guide).

See Also