Adds a multiple of a Matrix to this
GeneralMatrix.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function Add ( _ factor As Double, _ matrix As Matrix _ ) As GeneralMatrix |
| C# |
|---|
public GeneralMatrix Add ( double factor, Matrix matrix ) |
| C++ |
|---|
public: GeneralMatrix^ Add ( double factor, Matrix^ matrix ) |
Parameters
- factor (System.Double)
- The multiplication factor.
- matrix (Extreme.Mathematics.LinearAlgebra.Matrix)
- The Matrix to add to this GeneralMatrix.
Return Value
A reference to this GeneralMatrix.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | matrix is nullNothingnullptr. |
| DimensionMismatchException | The dimensions of the matrix matrix do not match the dimensions of this GeneralMatrix. |