Matrix<T>.Add Outer Product In Place Method
Definition
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 10.5.0
Overload List
| Add | Updates the matrix by adding the outer product of a vector with itself. |
| Add | Updates the matrix by adding the scaled outer product of a vector with itself. |
| Add | Updates the matrix by adding the outer product of two vectors. |
| Add | Updates the matrix by adding the scaled outer product of two vectors. |
AddOuterProductInPlace(Vector<T>)
public Matrix<T> AddOuterProductInPlace(
Vector<T> vector
)Parameters
Return Value
Matrix<T>A reference to this instance.
Exceptions
| Dimension | The length of vector does not equal the number of rows and columns of the matrix. |
AddOuterProductInPlace(T, Vector<T>)
public Matrix<T> AddOuterProductInPlace(
T factor,
Vector<T> vector
)Parameters
Return Value
Matrix<T>A reference to this instance.
Exceptions
| Argument | vector is null. |
| Dimension | The length of vector does not equal the number of rows and columns of the matrix. |
AddOuterProductInPlace(Vector<T>, Vector<T>)
public Matrix<T> AddOuterProductInPlace(
Vector<T> left,
Vector<T> right
)Parameters
Return Value
Matrix<T>A reference to this instance.
Exceptions
| Argument | left is null. -or- right is null. |
| Dimension | The length of left does not equal the number of rows in this matrix, or the length of right does not equal the number of columns. |
AddOuterProductInPlace(T, Vector<T>, Vector<T>)
public virtual Matrix<T> AddOuterProductInPlace(
T factor,
Vector<T> left,
Vector<T> right
)Parameters
- factor T
- The scale factor.
- left Vector<T>
- The first (column) vector.
- right Vector<T>
- The second (row) vector.
Return Value
Matrix<T>A reference to this instance.
Remarks
The length of left must equal the number of rows of this matrix. The length of right must equal the number of columns of this matrix.
This operation is sometimes called rank-1 update.
Exceptions
| Argument | left is null. -or- right is null. |
| Dimension | The length of left does not equal the number of rows in this matrix, or the length of right does not equal the number of columns. |