| NMathFunctionsSolvePD(DoubleSymCsrSparseMatrix, DoubleVector) Method |
Solves the linear system Ax = b where A is a
symmetric, postive definite, sparse matrix.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleVector SolvePD(
DoubleSymCsrSparseMatrix A,
DoubleVector b
)
Public Shared Function SolvePD (
A As DoubleSymCsrSparseMatrix,
b As DoubleVector
) As DoubleVector
public:
static DoubleVector^ SolvePD(
DoubleSymCsrSparseMatrix^ A,
DoubleVector^ b
)
static member SolvePD :
A : DoubleSymCsrSparseMatrix *
b : DoubleVector -> DoubleVector
Parameters
- A DoubleSymCsrSparseMatrix
- A CSR symmetric, postive definite, sparse matrix.
- b DoubleVector
- Vector to solve for. Must have a length equal to the
number of rows in A.
Return Value
DoubleVectorA vector
x that is the solution to
Ax = b.
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the length of b
is different than the number of rows in A. |
NMathException | Thrown if there is an error solving
the system or if A is not positive definite. |
See Also