Changeset 2cba98d in git


Ignore:
Timestamp:
Nov 9, 2011, 4:12:18 PM (13 years ago)
Author:
Burcin Erocal <burcin@…>
Branches:
(u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'b4f17ed1d25f93d46dbe29e4b499baecc2fd51bb')
Children:
a15586a3e2341feb5065aee8eaef7ffb89308451
Parents:
50831b02e6d4982711380a861ce28bc42c8860ea
git-author:
Burcin Erocal <burcin@erocal.org>2011-11-09 16:12:18+01:00
git-committer:
Oleksandr Motsak <motsak@mathematik.uni-kl.de>2011-11-09 20:32:40+01:00
Message:
Fix maps between GF fields.

We no longer store the number of elements of the field in the ch member
variable. m_nfCharQ should be used instead.
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • Tst/New/gf_fetch.tst

    r50831b r2cba98d  
    77ring D = (4,a),x,dp;print(D);
    88
    9 fetch(S, N); // BUG!
     9fetch(S, N);
    1010
    1111tst_status(1);$
  • libpolys/coeffs/ffields.cc

    r50831b r2cba98d  
    729729      qq=r->m_nfCharP;
    730730      while(qq!=src->m_nfCharQ) { qq *= r->m_nfCharP; n2++; }
    731       Print("map %d^%d -> %d^%d\n",r->m_nfCharP,n1,r->m_nfCharP,n2);
     731      //Print("map %d^%d -> %d^%d\n",r->m_nfCharP,n1,r->m_nfCharP,n2);
    732732      if ((n2 % n1)==0)
    733733      {
    734         int save_ch=r->ch;
    735         nfReadTable(src->ch, r);
     734        int save_ch=r->m_nfCharQ;
     735        nfReadTable(src->m_nfCharQ, r);
    736736        int nn=r->m_nfPlus1Table[0];
    737737        nfReadTable(save_ch, r);
    738738        nfMapGG_factor= r->m_nfPlus1Table[0] / nn;
    739         Print("nfMapGG_factor=%d (%d / %d)\n",nfMapGG_factor, r->m_nfPlus1Table[0], nn);
     739        //Print("nfMapGG_factor=%d (%d / %d)\n",nfMapGG_factor, r->m_nfPlus1Table[0], nn);
    740740        return nfMapGG;
    741741      }
Note: See TracChangeset for help on using the changeset viewer.