Docs / nablatensor-tensor / com.nablatensor.tensor.spi
final class
OpCodes
The integer selector the elementwise kernels' switch (op) expects. The CUDA-C kernels in ElementwiseKernels (which HIPRTC also compiles) and the GLSL shaders in the nablatensor-backend-vulkan shader library both branch on these exact values, so every backend maps Op through here instead of repeating the table — change a case label in a kernel and you change it here, once.
Methods
static int binary(Op op)
Selector for ew_binary / ew_scalar.
static int unary(Op op)
Selector for ew_unary.