Skip to content

Function sort

function sort(const vec<T, N> &) simd

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

Parameters
x input vector
Returns
sorted vector
CHECK(sort(make_vector(1000, 1, 2, -10)) == make_vector(-10, 1, 2, 1000));

Fully qualified name: kfr::sort(const vec<T, N> &)

Declared at simd/sort.hpp:43

This file was generated by cxxdox, a C++ documentation generator based on MkDocs Material and libclang.