Eigen 3.4.90
doc
snippets
MatrixBase_select.cpp
Go to the documentation of this file.
1
MatrixXi
m
(3, 3);
2
m
<< 1, 2, 3,
3
4, 5, 6,
4
7, 8, 9;
5
m
= (
m
.array() >= 5).select(-
m
,
m
);
6
cout <<
m
<< endl;
m
MatrixXi m(3, 3)
Eigen::MatrixXi
Matrix< int, Dynamic, Dynamic > MatrixXi
Dynamic×Dynamic matrix of type int.
Definition:
Matrix.h:500