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

◆ channels_sort_indices()

std::vector< std::vector< size_t > > MayaFlux::Kinesis::Discrete::channels_sort_indices ( const std::vector< std::span< double > > &  channels,
SortingDirection  direction 
)

Per-channel sort indices.

Parameters
channelsImmutable source spans
directionSort direction
Returns
One index vector per channel

Definition at line 46 of file Sort.cpp.

47{
48 std::vector<std::vector<size_t>> out;
49 out.reserve(channels.size());
50 for (const auto& ch : channels)
51 out.push_back(span_sort_indices(ch, direction));
52 return out;
53}
std::vector< size_t > span_sort_indices(std::span< double > data, SortingDirection direction)
Indices that would sort a span in the given direction.
Definition Sort.cpp:35

References span_sort_indices().

Referenced by MayaFlux::Yantra::generate_compute_data_indices().

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