include
eigenpy
eigen
EigenBase.hpp
Go to the documentation of this file.
1
/*
2
* Copyright 2024 INRIA
3
*/
4
5
#ifndef __eigenpy_eigen_eigen_base_hpp__
6
#define __eigenpy_eigen_eigen_base_hpp__
7
8
#include "
eigenpy/eigenpy.hpp
"
9
10
namespace
eigenpy
{
11
12
template
<
typename
Derived>
13
struct
EigenBaseVisitor
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()."
);
23
}
24
};
25
26
}
// namespace eigenpy
27
28
#endif // ifndef __eigenpy_eigen_eigen_base_hpp__
eigenpy::EigenBaseVisitor::visit
void visit(PyClass &cl) const
Definition:
EigenBase.hpp:16
test_complex.rows
int rows
Definition:
test_complex.py:4
eigenpy
Definition:
alignment.hpp:14
eigenpy::EigenBaseVisitor
Definition:
EigenBase.hpp:13
eigenpy.hpp
test_complex.cols
int cols
Definition:
test_complex.py:5
eigenpy
Author(s): Justin Carpentier, Nicolas Mansard
autogenerated on Sat Nov 2 2024 02:14:45