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

◆ sort_parallel()

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

Parallel sorting.

Definition at line 218 of file StandardSorter.hpp.

219 {
220 auto old_algorithm = m_algorithm;
221 m_algorithm = SortingAlgorithm::PARALLEL;
222 auto result = sort_copy(input);
223 m_algorithm = old_algorithm;
224 result.metadata["sort_type"] = "parallel";
225 return result;
226 }
output_type sort_copy(const input_type &input)
Copy-based sorting (preserves input)