Skip to main content

Module genome

Module genome 

Source
Expand description

Genome category trait and its zero-sized marker types.

GenomeKind tags genome representations at the type level so operators can specialize on the element semantics (real-valued, binary, integer, or tree). Strategies take a marker type as a const generic to pick the right operator set.

The markers themselves carry no data — they exist purely to discriminate trait impls.

Structs§

Binary
Binary genome (each gene is a bit, stored as i32 0/1 on device).
Integer
Integer-valued genome (each gene is a non-negative integer index).
Permutation
Permutation genome (each row is a permutation of 0..n_nodes).
Real
Real-valued genome (each gene is an f32).
Tree
Tree-based genome (variable-length AST, stored host-side).

Traits§

GenomeKind
Shape-erased genome kind.
TensorGenome
Genome kinds with a rectangular, device-resident tensor representation.