Module union

Module union 

Source
Expand description

MATLAB-compatible union builtin with GPU-aware semantics for RunMat.

Handles element-wise and row-wise unions with optional stable ordering and index outputs that mirror MathWorks MATLAB semantics. GPU tensors are gathered to host memory unless a provider supplies a dedicated union kernel hook.

Structs§

UnionEvaluation

Constants§

FUSION_SPEC
GPU_SPEC

Functions§

evaluate
Evaluate the union builtin once and expose all outputs.
union_numeric_from_tensors
Helper exposed for acceleration providers handling numeric tensors entirely on the host.