Dense Matrix<T, TSlice, TStorage2D>.Multiply And Add As Left Factor Core Method
Definition
Namespace: Numerics.NET.LinearAlgebra
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Multiply | Multiplies the matrix with a vector, adds the scaled result to another scaled vector, and returns the result. |
Multiply | Adds the scaled product of two matrices to another matrix. |
MultiplyAndAddAsLeftFactorCore(T, Vector<T>, T, TransposeOperation, Vector<T>, Vector<T>)
Multiplies the matrix with a vector, adds the scaled result to another scaled
vector, and returns the result.
protected override Vector<T> MultiplyAndAddAsLeftFactorCore(
T leftFactor,
Vector<T> left,
T productFactor,
TransposeOperation transpose,
Vector<T> rightFactor,
Vector<T>? result
)
Parameters
- leftFactor T
- The scale factor for the vector.
- left Vector<T>
- The vector in the left term of the addition.
- productFactor T
- The scale factor for the product.
- transpose TransposeOperation
- The transpose operation to perform on the linear operator before multiplying.
- rightFactor Vector<T>
- The right factor of the product.
- result Vector<T>
- The vector that is to hold the result. May be null.
Return Value
Vector<T>A vector that is the sum of leftFactor times left and productFactor times the product of this matrix and rightFactor.
MultiplyAndAddAsLeftFactorCore(T, Matrix<T>, T, TransposeOperation, Matrix<T>, TransposeOperation, Matrix<T>)
Adds the scaled product of two matrices to another matrix.
protected override Matrix<T> MultiplyAndAddAsLeftFactorCore(
T factor,
Matrix<T> left,
T productFactor,
TransposeOperation leftOperation,
Matrix<T> rightFactor,
TransposeOperation rightOperation,
Matrix<T>? result
)
Parameters
- factor T
- left Matrix<T>
- The left operand of the addition.
- productFactor T
- The scale factor for the matrix-matrix product.
- leftOperation TransposeOperation
- The operation to be performed on this matrix 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.
Return Value
Matrix<T>The sum of left with productFactor times the product of this matrix transformed as specified by leftOperation with rightFactor transformed as specified by rightOperation.