Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git] / ground / gcs / src / libs / eigen / failtest / sparse_storage_mismatch.cpp
blob51840d416a91e2011b67a7ef6a9a92c80b823d14
1 #include "../Eigen/Sparse"
2 using namespace Eigen;
4 typedef SparseMatrix<double,ColMajor> Mat1;
5 #ifdef EIGEN_SHOULD_FAIL_TO_BUILD
6 typedef SparseMatrix<double,RowMajor> Mat2;
7 #else
8 typedef SparseMatrix<double,ColMajor> Mat2;
9 #endif
11 int main()
13 Mat1 a(10,10);
14 Mat2 b(10,10);
15 a += b;