Sign in
third-party-mirror
/
eigen
/
941ca8d83f776b9a07153d3abef2877907aa0555
/
.
/
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
;