Ignore:
Timestamp:
May 26, 2011, 12:12:01 PM (13 years ago)
Author:
Frank Seelisch <seelisch@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
5a4b26f3e00776270c3ba83b16c92a69f3cca0e0
Parents:
73a9ffb72679635d0a4389f31022ac7b37564499
git-author:
Frank Seelisch <seelisch@mathematik.uni-kl.de>2011-05-26 12:12:01+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 12:36:53+01:00
Message:
removed calls to nCoeff_is_Q_a and nCoeff_is_Zp_a (kept definitions for compatibility towards svn trunk); changed map in algext.cc
File:
1 edited

Legend:

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

    r73a9ffb r488808e  
    736736}
    737737
    738 int rChar(ring r)
    739 {
    740   TODO(Somabody, move this proc. over to coeffs!?);
    741 
    742 #ifdef HAVE_RINGS
    743   if (rField_is_Ring_2toM(r))
    744     return binaryPower(2, (int)(unsigned long)r->cf->modExponent);
    745   if (rField_is_Ring_ModN(r))
    746     return (int)mpz_get_ui(r->cf->modBase);
    747   if (rField_is_Ring_PtoM(r))
    748     return binaryPower((int)mpz_get_ui(r->cf->modBase),
    749                        (int)(unsigned long)r->cf->modExponent);
    750 
    751 #endif
    752   if (rField_is_numeric(r))
    753     return 0;
    754   if (!rIsExtension(r)) /* Q, Fp */
    755     return r->cf->ch;
    756   if (rField_is_Zp_a(r))  /* Fp(a)  */
    757     return -r->cf->ch;
    758   if (rField_is_Q_a(r))   /* Q(a)  */
    759     return 0;
    760   /*else*/               /* GF(p,n) */
    761   {
    762     if ((r->cf->ch & 1)==0) return 2;
    763     int i=3;
    764     while ((r->cf->ch % i)!=0) i+=2;
    765     return i;
    766   }
    767 }
     738/* we keep this otherwise superfluous method for compatibility reasons
     739   towards the SINGULAR svn trunk */
     740int rChar(ring r) { return r->cf->ch; }
    768741
    769742typedef char *             char_ptr;
Note: See TracChangeset for help on using the changeset viewer.