Updates a matrix with the outer product of a
Vector and itself.
Namespace: Extreme.Mathematics.LinearAlgebra
Assembly: Extreme.Numerics (Extreme.Numerics)
Syntax
| Visual Basic (Declaration) |
|---|
Public Function AddOuterProduct ( _ vector As Vector _ ) As GeneralMatrix |
| C# |
|---|
public GeneralMatrix AddOuterProduct ( Vector vector ) |
| C++ |
|---|
public: GeneralMatrix^ AddOuterProduct ( Vector^ vector ) |
Parameters
- vector (Extreme.Mathematics.LinearAlgebra.Vector)
- A Vector.
Return Value
A reference to this instance.
Remarks
The matrix must be square. The length of the vector
vector must equal the number of rows and columns
of this matrix. Otherwise, an exception of type DimensionMismatchException
is thrown.
This operation is sometimes called vector rank-1 update.
Exceptions
| Exception | Condition |
|---|---|
| DimensionMismatchException | The length of vector does not equal the number of rows and columns of the matrix. |