Expand description
Binary comparison plan.
Sibling of crate::BinaryPlan for ops where the output dtype
differs from the input dtype: comparisons produce u8 (PyTorch /
NumPy bool storage convention: 0 = false, 1 = true) regardless of
the input element type.
Fully wired matrix: {Eq, Ne, Gt, Ge, Lt, Le} × {f32, f16, bf16,
f64} = 24 (kind, dtype) cells, each with both the contig fast path
and the strided / broadcast path (48 launchers total). The
dispatcher’s supported check reduces to a straight cross product
kind_in_scope && dtype_in_scope; the match arms in
run / run_strided remain the authoritative dispatch table.
Structs§
- Binary
CmpArgs - Args bundle for a binary comparison launch.
- Binary
CmpDescriptor - Descriptor for a binary comparison op.
- Binary
CmpPlan - Binary comparison plan.