Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Overridable Function Add ( _ factor As Double, _ matrix As Matrix, _ vector As Vector _ ) As Vector |
| C# |
|---|
public virtual Vector Add ( double factor, Matrix matrix, Vector vector ) |
| C++ |
|---|
public: virtual Vector^ Add ( double factor, Matrix^ matrix, Vector^ vector ) |
Parameters
- factor (System.Double)
- The scale factor for the matrix-vector product.
- matrix (Extreme.Mathematics.LinearAlgebra.Matrix)
- A Matrix.
- vector (Extreme.Mathematics.LinearAlgebra.Vector)
- A Vector.
Return Value
A reference to this instance.
Remarks
Using this method is more efficient than evaluating the equivalent
expression using overloaded operators. In the latter case, three intermediate
vectors are created. This method doesn't create any intermediate vectors.
Exceptions
| Exception | Condition |
|---|---|
| ArgumentNullException | matrix is nullNothingnullptr -or- vector is nullNothingnullptr |
| DimensionMismatchException |
The number of rows of matrix does not equal the length of this instance.
-or- The number of columns of matrix does not equal the length of vector. |