You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

16 lines
290 B

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