Trait num_bigint_dig::traits::ExtendedGcd[][src]

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

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

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

Loading content...

Implementors

impl<'a> ExtendedGcd<&'a BigInt> for BigInt[src]

impl<'a> ExtendedGcd<&'a BigInt> for BigUint[src]

impl<'a> ExtendedGcd<&'a BigUint> for BigInt[src]

impl<'a> ExtendedGcd<&'a BigUint> for BigUint[src]

impl<'a, 'b> ExtendedGcd<&'b BigInt> for &'a BigInt[src]

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

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

impl<'a, 'b> ExtendedGcd<&'b BigUint> for &'a BigUint[src]

Loading content...