Sign in
third-party-mirror
/
eigen
/
941ca8d83f776b9a07153d3abef2877907aa0555
/
.
/
doc
/
snippets
/
Tutorial_std_sort_rows_cxx11.cpp
blob: d948949c2acaf61345f312118e9a2db8d591e12b [
file
] [
log
] [
blame
]
ArrayXXi
A
=
ArrayXXi
::
Random
(
4
,
4
).
abs
();
cout
<<
"Here is the initial matrix A:\n"
<<
A
<<
"\n"
;
for
(
auto
row
:
A
.
rowwise
())
std
::
sort
(
row
.
begin
(),
row
.
end
());
cout
<<
"Here is the sorted matrix A:\n"
<<
A
<<
"\n"
;