| NMathFunctionsSolvePD(DoubleHermCsrSparseMatrix, DoubleComplexVector) Method |
Solves the linear system Ax = b where A is a
Hermitian, postive definite, sparse matrix.
Namespace: CenterSpace.NMath.CoreAssembly: NMath (in NMath.dll) Version: 7.4
Syntax public static DoubleComplexVector SolvePD(
DoubleHermCsrSparseMatrix A,
DoubleComplexVector b
)
Public Shared Function SolvePD (
A As DoubleHermCsrSparseMatrix,
b As DoubleComplexVector
) As DoubleComplexVector
public:
static DoubleComplexVector^ SolvePD(
DoubleHermCsrSparseMatrix^ A,
DoubleComplexVector^ b
)
static member SolvePD :
A : DoubleHermCsrSparseMatrix *
b : DoubleComplexVector -> DoubleComplexVector
Parameters
- A DoubleHermCsrSparseMatrix
- A CSR Hermitian, postive definite, sparse matrix.
- b DoubleComplexVector
- Vector to solve for. Must have a length equal to the
number of rows in A.
Return Value
DoubleComplexVectorA 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