Sign in
eigen
/
mirror
/
6fb3e5f1767855bc1a8aa3c868bc7fbf0eeb67ef
/
.
/
doc
/
snippets
/
Tutorial_std_sort.cpp
blob: 8f893684a76298838f9feb13eb90ac68af13a35b [
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"
;