function sort(const vec<T, N> &) sort¶
template <typename T, size_t N>
KFR_INTRINSIC vec<T, N> sort(const vec<T, N>& x) Sort the elements in the vector in ascending order
| x | input vector |
| sorted vector |
CHECK(sort(make_vector(1000, 1, 2, -10)) == make_vector(-10, 1, 2, 1000));
Defined at simd/sort.hpp:46