Skip to main content

cbd_coefficient

Function cbd_coefficient 

Source
fn cbd_coefficient<Eta>(bits: <BaseField as Field>::Int) -> Elem<BaseField>
where Eta: CbdSamplingSize,
Expand description

Map 2 * eta sampled bits to a CBD coefficient: the number of ones in the low eta bits minus the number of ones in the high eta bits, reduced mod q.