/** * Return the greatest common divisor of this and a polynomial <i>f</i> * * @param f polynomial * @return GCD(this, f) */ public PolynomialGF2mSmallM gcd(PolynomialGF2mSmallM f) { int[] resultCoeff = gcd(coefficients, f.coefficients); return new PolynomialGF2mSmallM(field, resultCoeff); }
/** * Return the greatest common divisor of this and a polynomial <i>f</i> * * @param f polynomial * @return GCD(this, f) */ public PolynomialGF2mSmallM gcd(PolynomialGF2mSmallM f) { int[] resultCoeff = gcd(coefficients, f.coefficients); return new PolynomialGF2mSmallM(field, resultCoeff); }
int[] g = gcd(add(u, Y), a); if (computeDegree(g) != 0)
int[] g = gcd(add(u, Y), a); if (computeDegree(g) != 0)