sparse_ref_1.cpp 302 B

123456789101112131415161718
  1. #include "../Eigen/Sparse"
  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 call_ref(Ref<SparseMatrix<float> > a) { }
  9. int main()
  10. {
  11. SparseMatrix<float> a(10,10);
  12. CV_QUALIFIER SparseMatrix<float>& ac(a);
  13. call_ref(ac);
  14. }