Trait Kernel

Source
pub trait Kernel {
    // Required method
    fn invoke<'a>(
        &self,
        args: &'a InvocationArgs<'a>,
    ) -> VortexResult<Option<Output>>;
}
Expand description

Compute functions can ask arrays for compute kernels for a given invocation.

The kernel is invoked with the input arguments and options, and can return None if it is unable to compute the result for the given inputs due to missing implementation logic. For example, if kernel doesn’t support the LTE operator.

If the kernel fails to compute a result, it should return a Some with the error.

Required Methods§

Source

fn invoke<'a>( &self, args: &'a InvocationArgs<'a>, ) -> VortexResult<Option<Output>>

Implementors§