SparseSolve(_:_:_:_:_:)
Solve AX=B using the specified iterative method for complex float values.
Declaration
func SparseSolve(_ method: SparseIterativeMethod, _ ApplyOperator: @escaping (Bool, CBLAS_TRANSPOSE, DenseMatrix_Complex_Float, DenseMatrix_Complex_Float) -> Void, _ B: DenseMatrix_Complex_Float, _ X: DenseMatrix_Complex_Float, _ Preconditioner: SparseOpaquePreconditioner_Complex_Float) -> SparseIterativeStatus_tParameters
- method:
(Input) Iterative method specification, eg return value of SparseConjugateGradient().
- ApplyOperator:
ApplyOperator(accumulate, trans, X, Y)should perform the operationY = op(A)Xifaccumulateisfalse, orY += op(A)Xifaccumulateistrue.accumulate(input) Indicates whether to perform
Y += op(A)X(if true) orY = op(A)X(if false).trans(input) Indicates whether
op(A)is the application ofA(trans=CblasNoTrans) orA^T(trans=CblasTrans).XThe matrix to multiply.
YThe matrix in which to accumulate or store the result.
- B:
The right-hand sides
Bto solve for. IfAhas dimensionm x n, thenBmust have dimensionm x nrhs, wherenrhsis 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:
(Input) The preconditioner to use.
See Also
Iterative sparse solve functions for complex matrices
SparseSolve(_:_:_:_:)SparseSolve(_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:_:)SparseSolve(_:_:_:_:)SparseSolve(_:_:_:_:)SparseSolve(_:_:_:_:)SparseSolve(_:_:_:_:)SparseSolve(_:_:_:_:_:)