21 register_polymorphic_to_python<xyz::polymorphic<DirectSumExplicitDynamics>>();
22 bp::class_<DirectSumExplicitDynamics, bp::bases<ExplicitDynamics>>(
23 "DirectSumExplicitDynamics",
24 "Direct sum :math:`f \\oplus g` of two explicit dynamical models.",
26 .def(bp::init<xyz::polymorphic<ExplicitDynamics>,
27 xyz::polymorphic<ExplicitDynamics>>((
"self"_a,
"f",
"g")))
31 bp::bases<context::ExplicitDynamicsData>>(
32 "DirectSumExplicitDynamicsData", bp::no_init)
33 .def_readwrite(
"data1", &DirectSumExplicitDynamics::Data::data1_)
34 .def_readwrite(
"data2", &DirectSumExplicitDynamics::Data::data2_);
37 "Produce the direct sum.");