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
236 B

  1. #include "../Eigen/Core"
  2. using namespace StormEigen;
  3. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  4. void call_ref(Ref<VectorXf> a) { }
  5. #else
  6. void call_ref(const Ref<const VectorXf> &a) { }
  7. #endif
  8. int main()
  9. {
  10. VectorXf a(10);
  11. call_ref(a+a);
  12. }