| DoubleSymSemiPDFactSolve(DoubleVector) 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 a solve is attempted
by calling this function.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public DoubleVector Solve(
DoubleVector b
)
Public Function Solve (
b As DoubleVector
) As DoubleVector
public:
DoubleVector^ Solve(
DoubleVector^ b
)
member Solve :
b : DoubleVector -> DoubleVector
Parameters
- b DoubleVector
- Right hand side. The length of b
must be equal to the Order of the factorization (number of rows/columns
in the factored matrix A).
Return Value
DoubleVectorThe solution vector.
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 length of the
right hand side vector b is not equal to the number of rows/columns in the
factored matrix A. |
See Also