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

◆ convert_and_sort()

template<ComputeData InputType = Kakshya::DataVariant, ComputeData OutputType = InputType>
output_type MayaFlux::Yantra::StandardSorter< InputType, OutputType >::convert_and_sort ( const input_type input)
inlineprivate

Handle type conversion scenarios.

Definition at line 341 of file StandardSorter.hpp.

342 {
343 std::vector<std::vector<double>> working_buffer;
344 auto [working_spans, structure_info] = OperationHelper::setup_operation_buffer(
345 const_cast<input_type&>(input), working_buffer);
346
348 return this->convert_result(working_buffer, structure_info);
349 }
output_type convert_result(std::vector< std::vector< double > > &result_data, DataStructureInfo &metadata)
Convert processed double data back to OutputType using metadata and optional callback.
static auto setup_operation_buffer(T &input, std::vector< std::vector< double > > &working_buffer)
Setup operation buffer from IO or ComputeData type.
typename base_type::input_type input_type
SortingDirection get_direction() const
void sort_channels_inplace(std::vector< std::span< double > > &channels, SortingDirection direction, SortingAlgorithm algorithm)
Sort multiple channels (spans) in-place.
@ PARTIAL
std::partial_sort for top-K selection

References MayaFlux::Yantra::sort_channels_inplace().

+ Here is the call graph for this function: