sparse_ref_4.cpp 235 B

123456789101112131415
  1. #include "../Eigen/Sparse"
  2. using namespace Eigen;
  3. void call_ref(Ref<SparseMatrix<float> > a) {}
  4. int main()
  5. {
  6. SparseMatrix<float> A(10,10);
  7. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  8. call_ref(A.transpose());
  9. #else
  10. call_ref(A);
  11. #endif
  12. }