Matrix.Add Scaled Product Method
Definition
Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23
Overload List
Add | Adds the scaled product of two matrices to another matrix. |
Add | Adds the scaled product of two matrices to another matrix. |
AddScaledProduct<T>(Matrix<T>, T, Matrix<T>, Matrix<T>)
Adds the scaled product of two matrices to another matrix.
public static Matrix<T> AddScaledProduct<T>(
this Matrix<T> left,
T factor,
Matrix<T> leftFactor,
Matrix<T> rightFactor
)
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.
- rightFactor Matrix<T>
- The right operand of the multiplication.
Type Parameters
- T
Return Value
Matrix<T>The sum of left with factor times the product of leftFactor with rightFactor.
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).AddScaledProduct<T>(Matrix<T>, T, Matrix<T>, TransposeOperation, Matrix<T>, TransposeOperation)
Adds the scaled product of two matrices to another matrix.
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.