Skip to content

Commit 773b0f0

Browse files
author
Dennis Schridde
committed
Eigen 3.2 compatibility
1 parent e6a6eb5 commit 773b0f0

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

src/matrix.hpp

+9-4
Original file line numberDiff line numberDiff line change
@@ -92,13 +92,10 @@ namespace LuaEigen {
9292
using Base::dot;
9393
using Base::cross;
9494

95+
Matrix() : Base() {}
9596
Matrix(lua_State *L) : Base() {}
9697
template<typename OtherDerived>
9798
Matrix(const Eigen::MatrixBase<OtherDerived> &o) : Base(o) {}
98-
template<typename OtherDerived>
99-
Matrix(const Eigen::EigenBase<OtherDerived> &o) : Base(o) {}
100-
template<typename OtherDerived>
101-
Matrix(const Eigen::ReturnByValue<OtherDerived> &o) : Base(o) {}
10299
~Matrix() {}
103100

104101
template<typename OtherDerived>
@@ -806,4 +803,12 @@ namespace LuaEigen {
806803
int MatrixX4f::resize(lua_State *L);
807804
}
808805

806+
namespace Eigen {
807+
namespace internal {
808+
template <typename _Scalar, int _Rows, int _Cols>
809+
struct traits<LuaEigen::Matrix<_Scalar, _Rows, _Cols>>
810+
: traits<Matrix<_Scalar, _Rows, _Cols>> {};
811+
}
812+
}
813+
809814
#endif

0 commit comments

Comments
 (0)