MCPcopy Create free account
hub / github.com/clMathLibraries/clSPARSE / clsparseSetSolverParams

Function clsparseSetSolverParams

src/library/solvers/solver-control.cpp:70–89  ·  view source on GitHub ↗

set the solver control parameters for next use;

Source from the content-addressed store, hash-verified

68
69// set the solver control parameters for next use;
70clsparseStatus
71clsparseSetSolverParams(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
91clsparseStatus
92clsparseSolverPrintMode(clSParseSolverControl solverControl, PRINT_MODE mode)

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected