Skip to main content

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 use a provider hook or typed host fallback, then public outputs are restored to the owning provider.

Structs§

UnionEvaluation

Constants§

FUSION_SPEC
GPU_SPEC
UNION_DESCRIPTOR

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.