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_ref_2.cpp
blob
46c9440c2fa2e42dd953ebebbea06d5a82c3345d
1
#include
"../Eigen/Sparse"
2
3
using namespace
Eigen
;
4
5
void
call_ref
(
Ref
<
SparseMatrix
<
float
> >
a
) { }
6
7
int
main
()
8
{
9
SparseMatrix
<
float
>
A
(
10
,
10
);
10
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
11
call_ref
(
A
.
row
(
3
));
12
#else
13
call_ref
(
A
.
col
(
3
));
14
#endif
15
}