in src/rqpoly.rs [102:114]
fn compute_scaled_roots(&mut self){
if !self.is_ntt_enabled{
return;
}
// compute scaled roots as wiprime = wi
for i in 0..self.n {
self.scaled_roots.push(T::from(compute_harvey_ratio(self.roots[i].rep(), self.q.rep())));
}
for i in 0..self.n {
self.scaled_invroots.push(T::from(compute_harvey_ratio(self.invroots[i].rep(), self.q.rep())));
}
}