galois.euclidean_algorithm¶
-
galois.
euclidean_algorithm
(a, b)[source]¶ Implements the Euclidean Algorithm to find the greatest common divisor of two integers.
- Parameters
a (int) – Any integer.
b (int) – Any integer.
- Returns
Greatest common divisor of a and b, i.e. gcd(a,b).
- Return type
int
References
Moon, “Error Correction Coding”, Section 5.2.2: The Euclidean Algorithm and Euclidean Domains, p. 181