aligator  0.10.0
A primal-dual augmented Lagrangian-type solver for nonlinear trajectory optimization.
Loading...
Searching...
No Matches
expose-parallel.cpp
Go to the documentation of this file.
1
6
7namespace aligator {
8namespace python {
9
10using namespace gar;
11using context::Scalar;
12using riccati_base_t = RiccatiSolverBase<Scalar>;
13using knot_t = LQRKnotTpl<context::Scalar>;
14using lqr_t = LQRProblemTpl<context::Scalar>;
15
17#ifdef ALIGATOR_MULTITHREADING
18 using parallel_solver_t = gar::ParallelRiccatiSolver<Scalar>;
19 bp::class_<parallel_solver_t, bp::bases<riccati_base_t>, boost::noncopyable>(
20 "ParallelRiccatiSolver", bp::no_init)
21 .def(bp::init<lqr_t &, uint>(("self"_a, "problem", "num_threads")))
22 .def_readonly("datas", &parallel_solver_t::datas);
23#endif
24}
25
26} // namespace python
27} // namespace aligator
RiccatiSolverBase< Scalar > riccati_base_t
LQRKnotTpl< context::Scalar > knot_t
LQRProblemTpl< context::Scalar > lqr_t
Main package namespace.