|
| | BitonicSorter (StandardSorterConfig config={}) |
| ConfigRefs | configs () const override |
| | The base view of the config structs this operation holds.
|
| SortingType | get_sorting_type () const override |
| | Gets the sorting type category for this sorter.
|
| std::vector< size_t > | order (std::span< const double > values) |
| | The indices that order one channel, computed on the GPU in the configured direction.
|
| bool | validate_input (const input_type &) const override |
| | False for a custom comparator, which cannot run on the device, and for chunked sorting with no chunk size.
|
| ConfigRefs | configs () const override |
| | The base view of the config structs this operation holds.
|
| std::string | get_name () const override |
| | Gets human-readable name for this sorter.
|
| OperationType | get_operation_type () const override |
| | Returns the category of this operation for grammar and registry discovery.
|
| virtual | ~Sorter ()=default |
| void | add_dependency (std::shared_ptr< ComputeOperation > dep) |
| output_type | apply_operation (const input_type &input) |
| | Public synchronous execution interface.
|
| output_type | apply_operation_with_dependencies (const input_type &input) |
| | Applies the operation with dependencies resolved.
|
| OutputType | apply_to_data (const InputType &data) |
| | Convenience overload that extracts just the data from result.
|
| | ComputeOperation () |
| | Constructor with data type validation warnings.
|
template<typename Config>
requires std::derived_from<Config, OperationConfig> |
| const Config & | config () const |
| | The stored config struct of type Config, or its defaults when none was set.
|
| output_type | execute (const input_type &input) |
| | OpUnit interface - operations can act as units in dependency graphs.
|
| const auto & | get_dependencies () const |
| const ExecutionContext & | get_last_execution_context () const |
| void | merge_config (const Facets &incoming) |
| | Adds the config structs of incoming, replacing stored ones of the same type.
|
| output_type | operator() (const InputType &data) |
| | Convenience overload for direct data processing (backward compatibility).
|
template<typename Config>
requires std::derived_from<Config, OperationConfig> |
| const Config * | resolved_config () const |
| | The stored config struct of type Config, or nullptr when absent.
|
template<typename Config>
requires std::derived_from<Config, OperationConfig> |
| void | set_config (Config config) |
| | Stores a config struct, whole, under its own type.
|
| void | set_last_execution_context (const ExecutionContext &ctx) |
| void | set_post_execution_hook (const OperationHookCallback &hook) |
| void | set_pre_execution_hook (const OperationHookCallback &hook) |
| void | set_reconstruction_callback (const ReconstructionCallback &callback) |
| template<typename... Configs> |
| ConfigRefs | stored_configs (Supports< Configs... >) const |
| | The stored configs among those listed, in listed order.
|
| virtual | ~ComputeOperation ()=default |
| | Virtual destructor for proper cleanup of derived classes.
|
template<ComputeData OutputType = std::vector<Kakshya::DataVariant>>
class MayaFlux::Yantra::BitonicSorter< OutputType >
Sorts each numeric channel on the GPU, exactly, without fp64.
The GPU candidate for the settings StandardSorter takes. Values are ordered through their order keys, so every double sorts exactly and the result matches a stable CPU sort: equal values keep their input order, -0.0 equals +0.0 and NaN sorts last, or first when descending. Every SortingAlgorithm is satisfied by the full sort, as are the in place, partial, parallel and index strategies, and the result is a sorted copy. The bidirectional order is the ascending sort laid out by Kinesis mountain_positions, and chunked sorting sorts each chunk on its own and concatenates them, as the CPU sorter does. order() gives the permutation of one channel.
A custom comparator is host code and cannot run in a shader, so validate_input declines it and another candidate takes the call. fitness grows with the channel length and is zero while no device is up.
Definition at line 34 of file BitonicSorter.hpp.