pub trait ExtendedGcd<R: Sized>: Sized {
    // Required method
    fn extended_gcd(self, other: R) -> (BigInt, BigInt, BigInt);
}
Expand description

Generic trait to implement extended GCD. Calculates the extended eucledian algorithm. See https://en.wikipedia.org/wiki/Extended_Euclidean_algorithm for details. The returned values are

  • greatest common divisor (1)
  • Bezout coefficients (2)

Required Methods§

source

fn extended_gcd(self, other: R) -> (BigInt, BigInt, BigInt)

Implementors§

source§

impl<'a> ExtendedGcd<&'a BigInt> for BigInt

source§

impl<'a> ExtendedGcd<&'a BigInt> for BigUint

source§

impl<'a> ExtendedGcd<&'a BigUint> for BigInt

source§

impl<'a> ExtendedGcd<&'a BigUint> for BigUint

source§

impl<'a, 'b> ExtendedGcd<&'b BigInt> for &'a BigInt

source§

impl<'a, 'b> ExtendedGcd<&'b BigInt> for &'a BigUint

source§

impl<'a, 'b> ExtendedGcd<&'b BigUint> for &'a BigInt

source§

impl<'a, 'b> ExtendedGcd<&'b BigUint> for &'a BigUint