Expand description
RnsBatch — the single flat buffer format shared by both backends.
Having one canonical layout means there is no reformatting when switching
between the CPU (rayon) and GPU (wgpu) backends: the GPU storage buffer is
this struct’s data, and the CPU just iterates it in place.
Layout is row-major [batch_size × n_channels]: element
data[b * n_channels + c] is the residue of item b in channel c.
Structs§
- RnsBatch
- A batch of RNS values in a flat, backend-agnostic buffer.