14 :
public boost::python::def_visitor<EigenBaseVisitor<Derived>> {
15 template <
class PyClass>
16 void visit(PyClass &cl)
const {
17 cl.def(
"cols", &Derived::cols, bp::arg(
"self"),
18 "Returns the number of columns.")
19 .def(
"rows", &Derived::rows, bp::arg(
"self"),
20 "Returns the number of rows.")
21 .def(
"size", &Derived::rows, bp::arg(
"self"),
22 "Returns the number of coefficients, which is rows()*cols().");