pub fn derivate(self) -> Polynomial {
        // Shift to the  right the poly by one cancelling the odd terms
        let mut res = &self >> 1;
        // Skip degree 0 term
        res.coeffs
            .iter_mut()
            .enumerate()
            .skip(1)
            .for_each(|(idx, coeff)| {
                if idx & 1 != 0 {
                    *coeff = Fp::zero()
                }
            });

        res
    }
/// Derivates a polynomial over a GF.
/// This means that the even terms dissapear.
Derivates a polynomial over a GF.
This means that the even terms dissapear.
Derivates a polynomial over a GF . This means that the even terms dissapear .
pub fn derivate(self) -> Polynomial {
        // Shift to the  right the poly by one cancelling the odd terms
        let mut res = &self >> 1;
        // Skip degree 0 term
        res.coeffs
            .iter_mut()
            .enumerate()
            .skip(1)
            .for_each(|(idx, coeff)| {
                if idx & 1 != 0 {
                    *coeff = Fp::zero()
                }
            });
        res
    }
pub fn derivate ( self ) -> Polynomial { // Shift to the  right the poly by one cancelling the odd terms let mut res = & self >> 1 ; // Skip degree 0 term res . coeffs . iter_mut ( ) . enumerate ( ) . skip ( 1 ) . for_each ( | ( idx , coeff ) | { if idx & 1 != 0 { * coeff = Fp :: zero ( ) } } ) ; res }
Derivates a polynomial over a GF.
Derivates a polynomial over a GF .
self
self