Uses the current factorization to solve for several right hand sides.
Namespace:
CenterSpace.NMath.MatrixAssembly: NMath (in NMath.dll) Version: 5.1.0.0
Syntax
| C# |
|---|
public DoubleMatrix Solve( DoubleMatrix rhs ) |
| Visual Basic (Declaration) |
|---|
Public Function Solve ( _ rhs As DoubleMatrix _ ) As DoubleMatrix |
| Visual C++ |
|---|
public: DoubleMatrix^ Solve( DoubleMatrix^ rhs ) |
Parameters
- rhs
- Type: CenterSpace.NMath.Core..::.DoubleMatrix
The right hand sides to solve for. Each right hand side is a column in the matrix.
Return Value
The solutions as a matrix if successful. The ith column of returned matrix is the solution with the right hand side equal to the ith column of the input rhs matrix.
Remarks
One should check the ErrorStatus property before
calling Solve to ensure the factorization is valid.
Exceptions
| Exception | Condition |
|---|---|
| CenterSpace.NMath.Core..::.MismatchedSizeException | Thrown if the number of rows in rhs is not equal to the number of rows in the factored matrix. |