20 y = x1 - (
a /
b) * y1;
53 Eigen::Matrix<long int, 3, 1> &sols) ->
void
61 assert(0 &&
"Integral solution for shifts does not exist");
64 const long int a(alphas(0) / gcd);
65 const long int b(alphas(1) / gcd);
66 const long int c(alphas(2) / gcd);
67 const long int t(
t1 / gcd);
72 const long int ap(
a / gcdab);
73 const long int bp(
b / gcdab);
85 const long int x(x0 + bp *
k - u0 *
m);
86 const long int y(y0 - ap *
k + v0 *
m);
87 const long int z(z0 + gcdab *
m);
static void solveDiophantine2vars(long int a, long int b, long int c, long int &x, long int &y)
static void solveDiophantine3vars(const Eigen::Matrix< long int, 3, 1 > &alphas, const long int t1, Eigen::Matrix< long int, 3, 1 > &sols)
static long int extended_gcd(long int a, long int b, long int &x, long int &y)
final point of the source segment t
static IntScalarType gcd(const IntScalarType &a, const IntScalarType &b)