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
/
MatrixBase_cwiseEqual.cpp
blob
eb3656f4cacdad0964015b13299bd00f8a32aedb
1
MatrixXi
m
(
2
,
2
);
2
m
<<
1
,
0
,
3
1
,
1
;
4
cout
<<
"Comparing m with identity matrix:"
<<
endl
;
5
cout
<<
m
.
cwiseEqual
(
MatrixXi
::
Identity
(
2
,
2
)) <<
endl
;
6
int
count
=
m
.
cwiseEqual
(
MatrixXi
::
Identity
(
2
,
2
)).
count
();
7
cout
<<
"Number of coefficients that are equal: "
<<
count
<<
endl
;