hacspec_lib::prelude

Function make_positive

Source
pub fn make_positive<T: Numeric + Copy>(poly: &Seq<T>, q: T) -> Seq<T>
Expand description

makes coefficients positiv, e.g. -3 mod 4 = 1