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

◆ sort_span_inplace()

void MayaFlux::Yantra::sort_span_inplace ( std::span< double >  data,
SortingDirection  direction,
SortingAlgorithm  algorithm 
)

Sort a single span of doubles in-place.

Parameters
dataSpan of data to sort
directionSort direction
algorithmSort algorithm

Definition at line 5 of file SortingHelper.cpp.

8{
9 if (data.empty()) {
10 return;
11 }
12
13 auto comp = create_double_comparator(direction);
14 execute_sorting_algorithm(data.begin(), data.end(), comp, algorithm);
15}

References create_double_comparator(), and execute_sorting_algorithm().

Referenced by MayaFlux::Yantra::StandardSorter< InputType, OutputType >::extract_chunked_data(), sort_channels_inplace(), and sort_span_extract().

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