17 template<
typename Solver>
19 :
public boost::python::def_visitor<ContactSolverBasePythonVisitor<Solver>>
24 template<
class PyClass>
27 #ifdef PINOCCHIO_PYTHON_PLAIN_SCALAR_TYPE
29 "getIterationCount", &Solver::getIterationCount, bp::arg(
"self"),
30 "Get the number of iterations achieved by the PGS algorithm.")
32 "setMaxIterations", &Solver::setMaxIterations, bp::args(
"self",
"max_it"),
33 "Set the maximum number of iterations.")
35 "getMaxIterations", &Solver::getMaxIterations, bp::arg(
"self"),
36 "Get the maximum number of iterations allowed.")
39 "setAbsolutePrecision", &Solver::setAbsolutePrecision,
40 bp::args(
"self",
"absolute_precision"),
"Set the absolute precision for the problem.")
42 "getAbsolutePrecision", &Solver::getAbsolutePrecision, bp::arg(
"self"),
43 "Get the absolute precision requested.")
46 "setRelativePrecision", &Solver::setRelativePrecision,
47 bp::args(
"self",
"relative_precision"),
"Set the relative precision for the problem.")
49 "getRelativePrecision", &Solver::getRelativePrecision, bp::arg(
"self"),
50 "Get the relative precision requested.")
53 "getAbsoluteConvergenceResidual", &Solver::getAbsoluteConvergenceResidual,
55 "Returns the value of the absolute residual value corresponding to the contact "
56 "complementary conditions.")
58 "getRelativeConvergenceResidual", &Solver::getRelativeConvergenceResidual,
60 "Returns the value of the relative residual value corresponding to the difference "
61 "between two successive iterates (infinity norms).")
63 #ifdef PINOCCHIO_WITH_HPP_FCL
64 .def(
"getCPUTimes", &Solver::getCPUTimes, bp::arg(
"self"))
65 #endif // PINOCCHIO_WITH_HPP_FCL