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

◆ sort_indices_only()

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

Generate sort indices only.

Definition at line 230 of file StandardSorter.hpp.

231 {
232 if constexpr (std::same_as<OutputType, std::vector<size_t>>) {
233 auto result = output_type {};
235 result.metadata = input.metadata;
236 result.metadata["sort_type"] = "indices_only";
237 return result;
238 } else {
239 // If output type is not vector<size_t>, fall back to copy sort
240 return sort_copy(input);
241 }
242 }
Core::GlobalInputConfig input
Definition Config.cpp:42
output_type sort_copy(const input_type &input)
Copy-based sorting (preserves input)
typename base_type::output_type output_type
SortingDirection get_direction() const
std::vector< std::vector< size_t > > generate_compute_data_indices(const Datum< T > &data, SortingDirection direction)
Generate sort indices for any ComputeData type.
T data
The actual computation data.
Definition DataIO.hpp:27

References MayaFlux::Yantra::generate_compute_data_indices(), MayaFlux::Yantra::UniversalSorter< InputType, OutputType >::get_direction(), input, and MayaFlux::Yantra::StandardSorter< InputType, OutputType >::sort_copy().

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: