Changeset 975db18 in git


Ignore:
Timestamp:
Jul 17, 2012, 9:30:21 PM (10 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', '96ce329119711a2b80858c8365abd29f8460bbfa')
Children:
de883715f1ef141b4db21091c8e3dafa32942d5b
Parents:
98474f69bc5c570dd7cb85f5f8a0b2164abccb91
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-17 21:30:21+02:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2012-07-17 21:33:55+02:00
Message:
implementing PolyCoeffsEnumerator: enumerator for simple iteration over coefficients of a (non-zero) polynomial.

add: added dummy stubs for calling n_ClearContent and n_ClearDenominators from p_Content and p_Cleardenom
Location:
libpolys/polys
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/Makefile.am

    r98474f r975db18  
    4242        nc/old.gring.cc
    4343
    44 LIBPOLYSHEADERS = monomials/ring.h monomials/monomials.h \
     44LIBPOLYSHEADERS = monomials/ring.h monomials/monomials.h \
     45  monomials/p_polys.h monomials/maps.h PolyEnumerator.h  prCopy.h \
    4546        nc/nc.h nc/sca.h nc/summator.h nc/ncSAFormula.h nc/ncSACache.h nc/ncSAMult.h nc/gb_hack.h \
    4647        operations/pShallowCopyDelete.h \
    4748        templates/p_Procs.h templates/p_MemAdd.h templates/p_MemCmp.h \
    48         monomials/p_polys.h monomials/maps.h prCopy.h \
    4949        kbuckets.h sbuckets.h simpleideals.h weight.h matpol.h \
    5050        sparsmat.h clapsing.h clapconv.h coeffrings.h \
  • libpolys/polys/monomials/p_polys.cc

    r98474f r975db18  
    2121#include <coeffs/longrat.h> // ???
    2222#include <coeffs/ffields.h>
     23
     24#include <polys/PolyEnumerator.h>
    2325
    2426#define TRANSEXT_PRIVATES
     
    20212023void p_Content(poly ph, const ring r)
    20222024{
     2025#if 0
     2026  if( ph != NULL )
     2027  {
     2028    CPolyCoeffsEnumerator itr(ph);
     2029    n_ClearContent(itr, r->cf);
     2030//    return;
     2031  }
     2032#endif
     2033
     2034 
    20232035#ifdef HAVE_RINGS
    20242036  if (rField_is_Ring(r))
     
    24282440{
    24292441  poly start=ph;
     2442
     2443#if 0
     2444  if( ph != NULL )
     2445  {
     2446    CPolyCoeffsEnumerator itr(ph);
     2447    n_ClearDenominators(itr, r->cf);
     2448    //  return start;
     2449  }
     2450#endif
     2451
    24302452  number d, h;
    24312453  poly p;
     
    25522574void p_Cleardenom_n(poly ph,const ring r,number &c)
    25532575{
     2576#if 0
     2577  if( ph != NULL )
     2578  {
     2579    CPolyCoeffsEnumerator itr(ph);
     2580    n_ClearDenominators(itr, c, r->cf);
     2581//    return;
     2582  }
     2583#endif
     2584 
    25542585  number d, h;
    25552586  poly p;
Note: See TracChangeset for help on using the changeset viewer.