Changeset 7b2b05 in git for libpolys/polys/clapsing.cc


Ignore:
Timestamp:
Aug 10, 2011, 5:59:04 PM (13 years ago)
Author:
Hans Schoenemann <hannes@…>
Branches:
(u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
Children:
072660924afb50e548220c7b6d431008d9d10d80
Parents:
3b1d9ad2203f374c5bb63a847f440d4759cd47c2
git-author:
Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-08-10 17:59:04+02:00
git-committer:
Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:19:11+01:00
Message:
removed longalg.*, longtrans.* (we use now algext.*, transext.*)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • libpolys/polys/clapsing.cc

    r3b1d9a r7b2b05  
    2525#include "monomials/ring.h"
    2626#include "simpleideals.h"
     27#include "ext_fields/transext.h"
    2728//#include "polys.h"
    2829
     
    283284      pIter(p);
    284285    }
    285     g = convSingPFactoryP( ((lnumber)g1)->z, r->cf->extRing );
    286     g = gcd( g, convSingPFactoryP( ((lnumber)g2)->z , r->cf->extRing));
     286    g = convSingPFactoryP( NUM(((fraction)g1)), r->cf->extRing );
     287    g = gcd( g, convSingPFactoryP( NUM(((fraction)g2)) , r->cf->extRing));
    287288
    288289    // second run: gcd's
     
    291292    while ( (p != NULL) && (g != 1)  && ( g != 0))
    292293    {
    293       h = convSingPFactoryP( ((lnumber)pGetCoeff(p))->z, r->cf->extRing );
     294      h = convSingPFactoryP( NUM(((fraction)pGetCoeff(p))), r->cf->extRing );
    294295      pIter( p );
    295296
     
    308309      for ( i = L, p = f; i.hasItem(); i++, p=pNext(p) )
    309310      {
    310         lnumber c=(lnumber)pGetCoeff(p);
    311         p_Delete(&c->z,r->cf->extRing); // 2nd arg used to be nacRing
    312         c->z=convFactoryPSingP( i.getItem() / g, r->cf->extRing );
     311        fraction c=(fraction)pGetCoeff(p);
     312        p_Delete(&(NUM(c)),r->cf->extRing); // 2nd arg used to be nacRing
     313        NUM(c)=convFactoryPSingP( i.getItem() / g, r->cf->extRing );
    313314        //nTest((number)c);
    314315        //#ifdef LDEBUG
Note: See TracChangeset for help on using the changeset viewer.