g = gcd(a, b)
.
The relationship between inputs and outputs is:
- If
sub_direction
is true:g = s * a - t * b
- If
sub_direction
is false:g = t * b - s * a
(s, -t)
or (-s, t)
are the
Bezout coefficients (according to sub_direction
).
g = gcd(a, b)
.
The relationship between inputs and outputs is:
sub_direction
is true: g = s * a - t * b
sub_direction
is false: g = t * b - s * a
(s, -t)
or (-s, t)
are the
Bezout coefficients (according to sub_direction
).