repo.or.cz
/
librepilot.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
Merged in f5soh/librepilot/update_credits (pull request #529)
[librepilot.git]
/
ground
/
gcs
/
src
/
libs
/
eigen
/
failtest
/
sparse_storage_mismatch.cpp
blob
51840d416a91e2011b67a7ef6a9a92c80b823d14
1
#include
"../Eigen/Sparse"
2
using namespace
Eigen
;
3
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
10
11
int
main
()
12
{
13
Mat1
a
(
10
,
10
);
14
Mat2
b
(
10
,
10
);
15
a
+=
b
;
16
}