Changeset 5d18675 in git for libpolys


Ignore:
Timestamp:
Sep 29, 2011, 2:04:24 AM (13 years ago)
Author:
Oleksandr Motsak <motsak@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
0ff2030fd072d70a06a89af842c039505b704f90
Parents:
b38d70eb347f3022d2862a75897727cb85659cfe
git-author:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-09-29 02:04:24+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 16:13:47+01:00
Message:
FIX: rDecompose should know about trans. exts.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/monomials/ring.h

    rb38d70 r5d18675  
    482482{ assume(r != NULL); assume(r->cf != NULL); return nCoeff_has_simple_inverse(r->cf); }
    483483
     484/// Z/p, GF(p,n), R: nCopy, nNew, nDelete are dummies
    484485static inline BOOLEAN rField_has_simple_Alloc(const ring r)
    485486{ assume(r != NULL); assume(r->cf != NULL); return nCoeff_has_simple_Alloc(r->cf); }
    486487
    487 /* Z/p, GF(p,n), R: nCopy, nNew, nDelete are dummies*/
     488/// Alg. or trans. ext.
    488489static inline BOOLEAN rField_is_Extension(const ring r)
    489490{ assume(r != NULL); assume(r->cf != NULL); return nCoeff_is_Extension(r->cf); } /* Z/p(a) and Q(a)*/
     
    547548  assume(C != NULL);
    548549
    549   if( rField_is_Extension(r) )
     550  if( rField_is_Extension(r) ) // only alg / trans. exts...
    550551  {
    551552    const ring R = C->extRing;
     
    577578static inline BOOLEAN rIsExtension(const ring r)
    578579{
    579   assume( (rParameter(r)!=NULL) == rField_is_Extension(r) ); // ?
    580   return rField_is_Extension(r);
     580//  assume( (rParameter(r)!=NULL) == rField_is_Extension(r) ); // ?
     581  return rField_is_Extension(r) || nCoeff_is_GF(r->cf) ;
    581582}
    582583
Note: See TracChangeset for help on using the changeset viewer.