| NMathFunctionsSolvePD(FloatSymCsrSparseMatrix, FloatMatrix) Method |
Solves the linear system AX = B where A is a
symmetric, positive definite sparse matrix.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static FloatMatrix SolvePD(
FloatSymCsrSparseMatrix A,
FloatMatrix B
)
Public Shared Function SolvePD (
A As FloatSymCsrSparseMatrix,
B As FloatMatrix
) As FloatMatrix
public:
static FloatMatrix^ SolvePD(
FloatSymCsrSparseMatrix^ A,
FloatMatrix^ B
)
static member SolvePD :
A : FloatSymCsrSparseMatrix *
B : FloatMatrix -> FloatMatrix
Parameters
- A FloatSymCsrSparseMatrix
- A CSR Symmetric Positive Definite Sparse matrix.
- B FloatMatrix
- The matrix of right hand sides. B must have the
same number of rows as A.
Return Value
FloatMatrixA matrix with the same number of columns as
B containing
the solutions.
Exceptions Exception | Condition |
---|
MismatchedSizeException | Thrown if the number of rows in
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. |
Remarks
The ith column of X, X(i), is
the solution to the equation AX(i) = B(i), where
B(i) is the ith column of B.
See Also