Click or drag to resize

NMathFunctionsSolve(DoubleHermCsrSparseMatrix, DoubleComplexMatrix) Method

Solves the linear system AX = B where A is a Hermitian sparse matrix.

Namespace: CenterSpace.NMath.Core
Assembly: NMath (in NMath.dll) Version: 7.4
Syntax
public static DoubleComplexMatrix Solve(
	DoubleHermCsrSparseMatrix A,
	DoubleComplexMatrix B
)

Parameters

A  DoubleHermCsrSparseMatrix
A CSR Hermitian Sparse matrix.
B  DoubleComplexMatrix
The matrix of right hand sides. B must have the same number of rows as A.

Return Value

DoubleComplexMatrix
A matrix with the same number of columns as B containing the solutions.
Exceptions
ExceptionCondition
MismatchedSizeExceptionThrown if the number of rows in B is different than the number of rows in A.
NMathExceptionThrown if there is an error solving the system.
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