signed_poly_sqnorm

Function signed_poly_sqnorm 

Source
pub fn signed_poly_sqnorm(logn: u32, a: &[i16]) -> u32
Expand description

Get the square norm of a polynomial with signed integer coefficients.

This function assumes that the squared norm fits on 32 bits (this is guaranteed if logn <= 10 and all coefficients are in [-2047,+2047]).