Sign in
third-party-mirror
/
eigen
/
440a71a78fb63be4f4e46dbf757a49ccf87c2aab
/
.
/
doc
/
snippets
/
Tutorial_std_sort.cpp
blob: cde2a6f1b4c142dcf71cfe6840190329e27b428e [
file
] [
log
] [
blame
]
Array4i
v
=
Array4i
::
Random
().
abs
();
cout
<<
"Here is the initial vector v:\n"
<<
v
.
transpose
()
<<
"\n"
;
std
::
sort
(
v
.
begin
(),
v
.
end
());
cout
<<
"Here is the sorted vector v:\n"
<<
v
.
transpose
()
<<
"\n"
;