fn compute_localizator_poly(tD: Polynomial, t: Fp) -> Polynomial {
    // Compute x^2t poly
    let mut d_2t_poly = vec![Fp::zero(); 2 * t.0 as usize + 2];
    d_2t_poly[2 * t.0 as usize + 1] = Fp::one();
    let d_2t_poly = Polynomial::from_fp_coefficients_vec(d_2t_poly);

    // Extended GCD between tD & x^2t
    d_2t_poly.extended_gcd(tD).0
}
/// Computes the localizator poly by applying the Extended GCD
/// algorigthm.
Computes the localizator poly by applying the Extended GCD
algorigthm.
Computes the localizator poly by applying the Extended GCD algorigthm .
fn compute_localizator_poly(tD: Polynomial, t: Fp) -> Polynomial {
    // Compute x^2t poly
    let mut d_2t_poly = vec![Fp::zero(); 2 * t.0 as usize + 2];
    d_2t_poly[2 * t.0 as usize + 1] = Fp::one();
    let d_2t_poly = Polynomial::from_fp_coefficients_vec(d_2t_poly);
    // Extended GCD between tD & x^2t
    d_2t_poly.extended_gcd(tD).0
}
fn compute_localizator_poly ( tD : Polynomial , t : Fp ) -> Polynomial { // Compute x^2t poly let mut d_2t_poly = vec ! [ Fp zero ( ) 2 t 0 as usize 2 ] ; d_2t_poly [ 2 * t . 0 as usize + 1 ] = Fp :: one ( ) ; let d_2t_poly = Polynomial :: from_fp_coefficients_vec ( d_2t_poly ) ; // Extended GCD between tD & x^2t d_2t_poly . extended_gcd ( tD ) . 0 }
Computes the localizator poly by applying the Extended GCD
algorigthm.
Computes the localizator poly by applying the Extended GCD algorigthm .
tD
Polynomial
t
Fp
tD
Polynomial
t
Fp