SparseSolve(_:_:_:_:_:)
Solve AX=B using the specified iterative method for complex double values.
Declaration
func SparseSolve(_ method: SparseIterativeMethod, _ A: SparseMatrix_Complex_Double, _ B: DenseMatrix_Complex_Double, _ X: DenseMatrix_Complex_Double, _ Preconditioner: SparseOpaquePreconditioner_Complex_Double) -> SparseIterativeStatus_tParameters
- method:
(Input) Iterative method specification, eg return value of
SparseConjugateGradient(). - A:
(Input) The matrix
Ato solve the system for. Only used for multiplication byAorA^T. - B:
The right-hand sides
Bto solve for. IfAhas dimensionm x n, thenBmust have dimensionm x nrhs, where nrhs is the number of right-hand sides to find solutions for. - X:
On entry, initial guess for solution, on return the solution. If
Ahas dimensionm x n, andBhas dimensionm x nrhs, thenXmust have dimensionn x nrhs. If no good initial estimate is available, user should set the initial guess to be the zero vector. - Preconditioner:
The preconditioner to apply.