summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
9a4f392)
Being careful about this is required to pass the openSUSE build process.
{
static const cln::cl_I n1(1);
const numeric icont_ = A.integer_content();
{
static const cln::cl_I n1(1);
const numeric icont_ = A.integer_content();
+ GINAC_ASSERT(cln::instanceof(icont_.to_cl_N(), cln::cl_RA_ring));
if (cln::instanceof(icont_.to_cl_N(), cln::cl_I_ring)) {
const cln::cl_I icont = cln::the<cln::cl_I>(icont_.to_cl_N());
if (icont != 1) {
if (cln::instanceof(icont_.to_cl_N(), cln::cl_I_ring)) {
const cln::cl_I icont = cln::the<cln::cl_I>(icont_.to_cl_N());
if (icont != 1) {
- }
- if (cln::instanceof(icont_.to_cl_N(), cln::cl_RA_ring)) {
Apr = (A/icont_).expand();
// A is a polynomail over rationals, so GCD is defined
// up to arbitrary rational number.
return n1;
}
Apr = (A/icont_).expand();
// A is a polynomail over rationals, so GCD is defined
// up to arbitrary rational number.
return n1;
}
- GINAC_ASSERT(NULL == "expected polynomial over integers or rationals");
}
ex chinrem_gcd(const ex& A_, const ex& B_, const exvector& vars)
}
ex chinrem_gcd(const ex& A_, const ex& B_, const exvector& vars)