sparse_storage_mismatch.cpp 290 B

12345678910111213141516
  1. #include "../Eigen/Sparse"
  2. using namespace Eigen;
  3. typedef SparseMatrix<double,ColMajor> Mat1;
  4. #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
  5. typedef SparseMatrix<double,RowMajor> Mat2;
  6. #else
  7. typedef SparseMatrix<double,ColMajor> Mat2;
  8. #endif
  9. int main()
  10. {
  11. Mat1 a(10,10);
  12. Mat2 b(10,10);
  13. a += b;
  14. }