The TFQMR algorithm was taken from: Iterative methods for sparse linear systems. Yousef Saad Algorithm is described in Chapter 7, section 7.4.3, page 219
The example code below provides an indication of the possible use of the solver.
Matrix<T>
matrixThe coefficient matrix, A
.
Vector<T>
inputThe solution vector, b
Vector<T>
resultThe result vector, x
Iterator<T>
iteratorThe iterator to use to control when to stop iterating.
IPreconditioner<T>
preconditionerThe preconditioner to use for approximations.