Changeset 73a9ffb in git for libpolys/coeffs/coeffs.h


Ignore:
Timestamp:
May 26, 2011, 10:29:03 AM (12 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
Children:
488808e90a9444d2ce5d16be059643fdd2e8629e
Parents:
e676cdf123bc41ae953d7fd58106263f5fd02d0c
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-05-26 10:29:03+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:53+01:00
Message:
made sure that ch is properly set everywhere, and ch >= 0; more ASSUMEs
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/coeffs/coeffs.h

    re676cd r73a9ffb  
    217217  unsigned long mod2mMask;
    218218#endif
    219   int        ch;  /* characteristic, rInit
    220                      PLEASE DOCUMENT HERE when this will be negative! */
     219  int        ch;  /* characteristic, set by the local *InitChar methods;
     220                     In field extensions or extensions towers, the
     221                     characteristic can be accessed from any of the
     222                     intermediate extension fields, i.e., in this case
     223                     it is redundant along the chain of field extensions;
     224                     CONTRARY to SINGULAR as it was, we do NOT LONGER use
     225                     negative values for ch. */
    221226
    222227  short      float_len; /* additional char-flags, rInit */
     
    459464  return (r->ringtype == 0) &&
    460465         ((getCoeffType(r)==n_algExt) || (getCoeffType(r)==n_transExt)) &&
    461          (r->ch < -1);
     466         (r->ch != 0);
    462467}
    463468
     
    469474  return (r->ringtype == 0) &&
    470475         ((getCoeffType(r)==n_algExt) || (getCoeffType(r)==n_transExt)) &&
    471          (r->ch < -1 ) && (-(r->ch) == p);
     476         (r->ch != 0) && (r->ch == p);
    472477}
    473478
Note: See TracChangeset for help on using the changeset viewer.