Changeset 3d0808 in git for libpolys/polys/monomials


Ignore:
Timestamp:
Apr 13, 2011, 3:12:04 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
6f3273cb5116675e456582b1c2212f8e506ff61d
Parents:
c9c1186ff876027a15ba78ce440c0206aa356e29
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-04-13 15:12:04+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:12:31+01:00
Message:
fix void id_DelDiv(ideal id, const ring r)
fix p_DivisibleByRingCase
Location:
libpolys/polys/monomials
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/p_polys.cc

    rc9c118 r3d0808  
    14011401  return result;
    14021402}
     1403
     1404#ifdef HAVE_RINGS
     1405/* TRUE iff LT(f) | LT(g) */
     1406BOOLEAN p_DivisibleByRingCase(poly f, poly g, const ring r)
     1407{
     1408  int exponent;
     1409  for(int i = (int)rVar(r); i>0; i--)
     1410  {
     1411    exponent = p_GetExp(g, i, r) - p_GetExp(f, i, r);
     1412    if (exponent < 0) return FALSE;
     1413  }
     1414  return n_DivBy(pGetCoeff(g), pGetCoeff(f), r->cf);
     1415}
     1416#endif
    14031417
    14041418/*2
  • libpolys/polys/monomials/p_polys.h

    rc9c118 r3d0808  
    6868 ***************************************************************/
    6969unsigned long p_GetShortExpVector(poly a, ring r);
     70/* divisibility check over ground ring (which may contain zero divisors);
     71   TRUE iff LT(f) divides LT(g), i.e., LT(f)*c*m = LT(g), for some
     72   coefficient c and some monomial m;
     73   does not take components into account */
     74#ifdef HAVE_RINGS
     75BOOLEAN p_DivisibleByRingCase(poly f, poly g, const ring r);
     76#endif
    7077
    7178/***************************************************************
Note: See TracChangeset for help on using the changeset viewer.