Registered Member
|
Hi !
I fail to compile a simple call to a template function which takes an Eigen:: Matrix as argument. May I ask you some hint ? See below the code :
See below the compiler error : src/tstEigen.cpp: In instantiation of ‘Eigen::MatrixBase<Derived>& tst12(const Eigen::MatrixBase<Derived>&) [with DerivedA = Eigen::Matrix<double, 12, 4>]’: src/tstEigen.cpp:324:10: required from here src/tstEigen.cpp:316:22: error: invalid initialization of non-const reference of type ‘Eigen::MatrixBase<Eigen::Matrix<double, 12, 4> >&’ from an rvalue of type ‘Eigen::DenseBase<Eigen::Matrix<double, 12, 4> >::ConstTransposeReturnType {aka const Eigen::Transpose<const Eigen::Matrix<double, 12, 4> >}’ return M.transpose(); Thanks for helping ! Sylvain |
Registered Member
|
Sorry, the problem is fixed.
It was'nt an issue related to the argument passing, but it was due to the function code. I fixed the code with :
Sorry for the disturbance. |
Registered users: bartoloni, Bing [Bot], Google [Bot], Yahoo [Bot]