Skip to content

Commit

Permalink
core: fix proper location for enableEigenPySpecific
Browse files Browse the repository at this point in the history
  • Loading branch information
jcarpent committed Jan 26, 2024
1 parent 103ae3d commit 54d4329
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/eigenpy/eigenpy.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -54,15 +54,14 @@ EIGEN_DONT_INLINE void exposeType() {
ENABLE_SPECIFIC_MATRIX_TYPE(VectorXs);
ENABLE_SPECIFIC_MATRIX_TYPE(RowVectorXs);
ENABLE_SPECIFIC_MATRIX_TYPE(MatrixXs);

enableEigenPySpecific<Eigen::SparseMatrix<Scalar, Options> >();
}

template <typename Scalar>
EIGEN_DONT_INLINE void exposeType() {
exposeType<Scalar, 0>();

enableEigenPySpecific<Eigen::SparseMatrix<Scalar, Eigen::ColMajor> >();
enableEigenPySpecific<Eigen::SparseMatrix<Scalar, Eigen::RowMajor> >();

#ifdef EIGENPY_WITH_TENSOR_SUPPORT
enableEigenPySpecific<Eigen::Tensor<Scalar, 1> >();
enableEigenPySpecific<Eigen::Tensor<Scalar, 2> >();
Expand Down

0 comments on commit 54d4329

Please sign in to comment.