Click or drag to resize

NMathFunctionsSolvePD(FloatSymCsrSparseMatrix, FloatVector) Method

Solves the linear system Ax = b where A is a symmetric, postive definite, sparse matrix.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static FloatVector SolvePD(
	FloatSymCsrSparseMatrix A,
	FloatVector b
)

Parameters

A  FloatSymCsrSparseMatrix
A CSR symmetric, postive definite, sparse matrix.
b  FloatVector
Vector to solve for. Must have a length equal to the number of rows in A.

Return Value

FloatVector
A vector x that is the solution to Ax = b.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the length of b is different than the number of rows in A.
NMathExceptionThrown if there is an error solving the system or if A is not positive definite.
See Also