| DoubleSymSemiPDFactSolve(DoubleMatrix) Method |
Solves the linear system AX = B using the Cholesky factorization
for A. The factorization must be checked using the IsGood
property before solving. An execption will be thrown when the
IsGood property is false and this method is invoked.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleMatrix Solve(
DoubleMatrix B
)
Public Function Solve (
B As DoubleMatrix
) As DoubleMatrix
public:
DoubleMatrix^ Solve(
DoubleMatrix^ B
)
member Solve :
B : DoubleMatrix -> DoubleMatrix
Parameters
- B DoubleMatrix
- Matrix of right hand sides. The number of rows in B
must be equal to the Order of the factorization (number of rows/columns
in the factored matrix A).
Return Value
DoubleMatrixThe solution matrix.
Exceptions Exception | Condition |
---|
SingularMatrixException | Thrown if the factorization
for the matrix was not successful. Check if the factorization may be used
for solving with the IsGood property. |
MismatchedSizeException | Thrown if the number of rows in the
right hand side B is not equal to the number of rows/columns in the
factored matrix A. |
See Also