Struct num_integer::ExtendedGcd [−][src]
pub struct ExtendedGcd<A> {
pub gcd: A,
pub x: A,
pub y: A,
// some fields omitted
}
Expand description
Greatest common divisor and Bézout coefficients
let e = isize::extended_gcd(a, b);
assert_eq!(e.gcd, e.x*a + e.y*b);
Fields
gcd: A
x: A
y: A
Trait Implementations
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.