Matrix.Add Scaled Product Into Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Add | Adds the scaled product of two matrices to another matrix. |
Add | Adds the scaled product of two matrices to another matrix. |
AddScaledProductInto<T>(Matrix<T>, T, Matrix<T>, Matrix<T>, Matrix<T>)
Adds the scaled product of two matrices to another matrix.
public static Matrix<T> AddScaledProductInto<T>(
Matrix<T> left,
T factor,
Matrix<T> leftFactor,
Matrix<T> rightFactor,
Matrix<T> result
)
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.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
Type Parameters
- T
Return Value
Matrix<T>The sum of left with factor times the product of leftFactor with rightFactor.
AddScaledProductInto<T>(Matrix<T>, T, Matrix<T>, TransposeOperation, Matrix<T>, TransposeOperation, Matrix<T>)
Adds the scaled product of two matrices to another matrix.
public static Matrix<T> AddScaledProductInto<T>(
Matrix<T> left,
T factor,
Matrix<T> leftFactor,
TransposeOperation leftOperation,
Matrix<T> rightFactor,
TransposeOperation rightOperation,
Matrix<T> result
)
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.
- result Matrix<T>
- The matrix that is to hold the result. May be null.
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.