Adds a multiple of the product of two GeneralMatrix object
to this GeneralMatrix.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function AddProduct ( _ factor As Double, _ matrix1 As GeneralMatrix, _ matrix2 As GeneralMatrix _ ) As GeneralMatrix |
| C# |
|---|
public GeneralMatrix AddProduct ( double factor, GeneralMatrix matrix1, GeneralMatrix matrix2 ) |
| C++ |
|---|
public: GeneralMatrix^ AddProduct ( double factor, GeneralMatrix^ matrix1, GeneralMatrix^ matrix2 ) |
Parameters
- factor (System.Double)
- Multiplier for the matrix product.
- matrix1 (Extreme.Mathematics.LinearAlgebra.GeneralMatrix)
- The first GeneralMatrix.
- matrix2 (Extreme.Mathematics.LinearAlgebra.GeneralMatrix)
- The second GeneralMatrix.
Return Value
A reference to this GeneralMatrix.
Remarks
This method uses the BLAS routine DGEMM.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | matrix1 is nullNothingnullptr.
-or- matrix2 is nullNothingnullptr. |
| DimensionMismatchException | The dimensions of any of the three matrices involved in this operation are not compatible. |