const_qualified_diagonal_method_retval.cpp 239 B

123456789101112131415
  1. #include "../Eigen/Core"
  2. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  3. #define CV_QUALIFIER const
  4. #else
  5. #define CV_QUALIFIER
  6. #endif
  7. using namespace Eigen;
  8. void foo(CV_QUALIFIER Matrix3d &m){
  9. Diagonal<Matrix3d> b(m.diagonal());
  10. }
  11. int main() {}