MayaFlux 0.3.0
Digital-First Multimedia Processing Framework
Loading...
Searching...
No Matches

◆ sort_span()

void MayaFlux::Kinesis::Discrete::sort_span ( std::span< double >  data,
SortingDirection  direction,
SortingAlgorithm  algorithm = SortingAlgorithm::STANDARD 
)

Sort a single span in-place.

Parameters
dataMutable span
directionSort direction
algorithmAlgorithm to use

Definition at line 5 of file Sort.cpp.

6{
7 if (data.empty())
8 return;
9 execute(data.begin(), data.end(), double_comparator(direction), algorithm);
10}
auto double_comparator(SortingDirection direction) noexcept
Direction-based comparator for doubles.
Definition Sort.hpp:68
void execute(Iterator begin, Iterator end, Comparator comp, SortingAlgorithm algorithm)
Execute a sorting algorithm on an iterator range.
Definition Sort.hpp:128

References double_comparator(), and execute().

Referenced by sort_channels(), and sort_span_into().

+ Here is the call graph for this function:
+ Here is the caller graph for this function: