Eigen 3.4.90
doc
snippets
Tutorial_std_sort.cpp
Go to the documentation of this file.
1
Array4i
v
= Array4i::Random().abs();
2
cout <<
"Here is the initial vector v:\n"
<<
v
.transpose() <<
"\n"
;
3
std::sort(
v
.begin(),
v
.end());
4
cout <<
"Here is the sorted vector v:\n"
<<
v
.transpose() <<
"\n"
;
v
Array4i v
Definition:
Tutorial_std_sort.cpp:1
Eigen::Array4i
Array< int, 4, 1 > Array4i
Definition:
Array.h:344