9 template <
typename Scalar,
int Options>
11 typedef Eigen::SparseMatrix<Scalar, Options> ReturnType;
18 template <
typename Scalar,
int Options>
20 typedef Eigen::SparseMatrix<Scalar, Options> ReturnType;
27 template <
typename Scalar,
int Options>
29 const Eigen::Ref<
const Eigen::Matrix<Scalar, Eigen::Dynamic, 1> >&
31 typedef Eigen::SparseMatrix<Scalar, Options> ReturnType;
33 for (Eigen::Index k = 0; k <
diag_values.size(); ++k)
39 template <
typename Scalar,
int Options>
41 return Eigen::SparseMatrix<Scalar, Options>();
44 template <
typename Scalar,
int Options>
46 return Eigen::SparseMatrix<Scalar, Options>();
49 template <
typename Scalar,
int Options>
50 void print(
const Eigen::SparseMatrix<Scalar, Options>&
mat) {
51 std::cout <<
mat << std::endl;
54 template <
typename Scalar,
int Options>
55 Eigen::SparseMatrix<Scalar, Options>
copy(
56 const Eigen::SparseMatrix<Scalar, Options>&
mat) {
60 template <
typename Scalar,
int Options>
63 bp::def(
"vector1x1", vector1x1<Scalar, Options>);
64 bp::def(
"matrix1x1", matrix1x1<Scalar, Options>);
66 bp::def(
"print", print<Scalar, Options>);
67 bp::def(
"copy", copy<Scalar, Options>);
68 bp::def(
"diagonal", diagonal<Scalar, Options>);
70 bp::def(
"emptyVector", emptyVector<Scalar, Options>);
71 bp::def(
"emptyMatrix", emptyMatrix<Scalar, Options>);
78 expose_functions<double, Eigen::ColMajor>();
79 expose_functions<double, Eigen::RowMajor>();