Sign in
eigen
/
mirror
/
c21a80be3d0506587e73f7a5796df6e83967a934
/
.
/
doc
/
snippets
/
MatrixBase_select.cpp
blob: d14941bd4657f9c6eeb31037934f315fb8172785 [
file
] [
log
] [
blame
]
MatrixXi
m
(
3
,
3
);
m
<<
1
,
2
,
3
,
4
,
5
,
6
,
7
,
8
,
9
;
m
=
(
m
.
array
()
>=
5
).
select
(-
m
,
m
);
cout
<<
m
<<
endl
;