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.

15 lines
243 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. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  8. call_ref(A.row(3));
  9. #else
  10. call_ref(A.col(3));
  11. #endif
  12. }