9 template <
typename Matrix>
14 void show() { std::cout <<
mat << std::endl; }
24 template <
typename MatrixType>
26 using namespace Eigen;
29 bp::class_<Base<MatrixType>>(
name.c_str(), bp::init<DenseIndex, DenseIndex>())
33 bp::return_internal_reference<>())
38 using namespace Eigen;
41 typedef Eigen::Matrix<double, Eigen::Dynamic, 1> VectorType;
42 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic> MatrixType;
43 typedef Eigen::Matrix<double, Eigen::Dynamic, Eigen::Dynamic, Eigen::RowMajor>
46 expose_matrix_class<VectorType>(
"Vector");
47 expose_matrix_class<MatrixType>(
"Matrix");
48 expose_matrix_class<RowMatrixType>(
"RowMatrix");