set the solver control parameters for next use;
| 68 | |
| 69 | // set the solver control parameters for next use; |
| 70 | clsparseStatus |
| 71 | clsparseSetSolverParams(clSParseSolverControl solverControl, |
| 72 | PRECONDITIONER precond, |
| 73 | cl_int maxIters, cl_double relTol, cl_double absTol) |
| 74 | { |
| 75 | if (solverControl == nullptr) |
| 76 | { |
| 77 | return clsparseInvalidSolverControlObject; |
| 78 | } |
| 79 | |
| 80 | solverControl->absoluteTolerance = absTol; |
| 81 | solverControl->relativeTolerance = relTol; |
| 82 | solverControl->nIters = 0; |
| 83 | solverControl->maxIters = maxIters; |
| 84 | solverControl->initialResidual = 0; |
| 85 | solverControl->preconditioner = precond; |
| 86 | |
| 87 | return clsparseSuccess; |
| 88 | |
| 89 | } |
| 90 | |
| 91 | clsparseStatus |
| 92 | clsparseSolverPrintMode(clSParseSolverControl solverControl, PRINT_MODE mode) |
no outgoing calls
no test coverage detected