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
/
ref_5.cpp
blob
846d52795721f9739ac1c0a333a727758edb937d
1
#include
"../Eigen/Core"
2
3
using namespace
Eigen
;
4
5
void
call_ref
(
Ref
<
VectorXf
>
a
) { }
6
7
int
main
()
8
{
9
VectorXf
a
(
10
);
10
DenseBase
<
VectorXf
> &
ac
(
a
);
11
#ifdef EIGEN_SHOULD_FAIL_TO_BUILD
12
call_ref
(
ac
);
13
#else
14
call_ref
(
ac
.
derived
());
15
#endif
16
}