Expand description
Session-scoped registry of parent kernels.
ArrayKernels holds two kinds of kernels. Each kernel is registered for a parent and a child:
- The optimizer uses parent-reduce rules to rewrite a parent array from one of its children, without decoding data.
- The executor uses execute-parent kernels to execute a parent array through one of its children.
The parent is the encoding of the parent array, or the function of a scalar function array. When more than one kernel is registered for the same parent and child, they are tried in registration order until one applies.
KernelSession is the session variable that holds the registry. Its Default
implementation registers the built-in kernels of vortex-array.
Structs§
- Array
Kernels - Session-scoped registry of parent-reduce rules and execute-parent kernels.
- Encoding
Parent - The
ReduceParentkind of an array encoding. - Kernel
Session - Session-scoped holder for the optimizer kernel registry.
- Scalar
FnParent - The
ReduceParentkind of a scalar function.
Traits§
- Array
Kernels Ext - Extension trait for accessing the optimizer kernel registry from a
VortexSession. - DynExecute
Parent Kernel - Type-erased execute-parent kernel stored in the session registry.
- Reduce
Parent - The parent that a parent-reduce rule is registered under.
Type Aliases§
- Execute
Parent Fn - Function pointer for a plugin-provided parent execution.