8 template<
typename Matrix>
12 const Eigen::DenseIndex
cols)
18 std::cout <<
mat << std::endl;
30 template<
typename MatrixType>
33 using namespace Eigen;
36 bp::class_<Base<MatrixType> >(name.c_str(),bp::init<DenseIndex,DenseIndex>())
45 using namespace Eigen;
48 typedef Eigen::Matrix<double,Eigen::Dynamic,1> VectorType;
49 typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic> MatrixType;
50 typedef Eigen::Matrix<double,Eigen::Dynamic,Eigen::Dynamic,Eigen::RowMajor> RowMatrixType;
52 expose_matrix_class<VectorType>(
"Vector");
53 expose_matrix_class<MatrixType>(
"Matrix");
54 expose_matrix_class<RowMatrixType>(
"RowMatrix");
Base(const Eigen::DenseIndex rows, const Eigen::DenseIndex cols)
void EIGENPY_DLLAPI enableEigenPy()
void expose_matrix_class(const std::string &name)
BOOST_PYTHON_MODULE(return_by_ref)
const Matrix & const_ref()