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
LP-311 Remove basic/advanced stabilization tab auto-switch (autotune/txpid lock issues)
[librepilot.git]
/
ground
/
gcs
/
src
/
libs
/
eigen
/
doc
/
snippets
/
TopicAliasing_mult2.cpp
blob
a3ff56851cf21b355714ebb4cdb05ae27f6ec2a6
1
MatrixXf
matA
(
2
,
2
),
matB
(
2
,
2
);
2
matA
<<
2
,
0
,
0
,
2
;
3
4
// Simple but not quite as efficient
5
matB
=
matA
*
matA
;
6
cout
<<
matB
<<
endl
<<
endl
;
7
8
// More complicated but also more efficient
9
matB
.
noalias
() =
matA
*
matA
;
10
cout
<<
matB
;