Skip to content

Commit 2564070

Browse files
committed
core: add typedef for SparseMatrix
1 parent 1da8153 commit 2564070

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

include/eigenpy/eigen-typedef.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@
3232
EIGENPY_MAKE_FIXED_TYPEDEFS(Type, Options, TypeSuffix, 2) \
3333
EIGENPY_MAKE_FIXED_TYPEDEFS(Type, Options, TypeSuffix, 3) \
3434
EIGENPY_MAKE_FIXED_TYPEDEFS(Type, Options, TypeSuffix, 4) \
35-
EIGENPY_MAKE_TYPEDEFS(Type, Options, TypeSuffix, 1, 1)
35+
EIGENPY_MAKE_TYPEDEFS(Type, Options, TypeSuffix, 1, 1) \
36+
typedef Eigen::SparseMatrix<Scalar, Options> SparseMatrixX##TypeSuffix
3637

3738
#endif // ifndef __eigenpy_eigen_typedef_hpp__

include/eigenpy/eigenpy.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ EIGEN_DONT_INLINE void exposeType() {
5858
ENABLE_SPECIFIC_MATRIX_TYPE(RowVectorXs);
5959
ENABLE_SPECIFIC_MATRIX_TYPE(MatrixXs);
6060

61-
enableEigenPySpecific<Eigen::SparseMatrix<Scalar, Options> >();
61+
enableEigenPySpecific<SparseMatrixXs>();
6262
}
6363

6464
template <typename Scalar>

0 commit comments

Comments
 (0)