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

◆ sort_partial()

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

Partial sorting (top-K elements)

Definition at line 247 of file StandardSorter.hpp.

248 {
249 auto result = input;
250 if constexpr (std::same_as<InputType, OutputType>) {
251 result.data = sort_data_partial(input);
252 return result;
253 } else {
254 return convert_and_sort(input);
255 }
256 }
Core::GlobalInputConfig input
Definition Config.cpp:42
InputType sort_data_partial(const input_type &data)
Partial sorting implementation.
output_type convert_and_sort(const input_type &input)
Handle type conversion scenarios.

References MayaFlux::Yantra::StandardSorter< InputType, OutputType >::convert_and_sort(), input, and MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_data_partial().

Referenced by MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_implementation().

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