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

◆ validate_input()

template<ComputeData OutputType = std::vector<Kakshya::DataVariant>>
bool MayaFlux::Yantra::BitonicSorter< OutputType >::validate_input ( const input_type & ) const
inlineoverridevirtual

False for a custom comparator, which cannot run on the device, and for chunked sorting with no chunk size.

Reimplemented from MayaFlux::Yantra::ComputeOperation< InputType, OutputType >.

Definition at line 81 of file BitonicSorter.hpp.

82 {
83 const auto& config = this->template config<StandardSorterConfig>();
84 const bool chunk_ok = config.strategy != SortingStrategy::CHUNKED_SORT || config.chunk_size > 0;
85 return config.direction != SortingDirection::CUSTOM && chunk_ok;
86 }
Sorts each numeric channel on the GPU, exactly, without fp64.
const Config & config() const
The stored config struct of type Config, or its defaults when none was set.

References MayaFlux::Yantra::CHUNKED_SORT, and MayaFlux::Yantra::ComputeOperation< InputType, OutputType >::config().

Here is the call graph for this function: