Changeset 7b2b05 in git for libpolys/polys/clapsing.cc
- Timestamp:
- Aug 10, 2011, 5:59:04 PM (13 years ago)
- 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
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libpolys/polys/clapsing.cc
r3b1d9a r7b2b05 25 25 #include "monomials/ring.h" 26 26 #include "simpleideals.h" 27 #include "ext_fields/transext.h" 27 28 //#include "polys.h" 28 29 … … 283 284 pIter(p); 284 285 } 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)); 287 288 288 289 // second run: gcd's … … 291 292 while ( (p != NULL) && (g != 1) && ( g != 0)) 292 293 { 293 h = convSingPFactoryP( ((lnumber)pGetCoeff(p))->z, r->cf->extRing );294 h = convSingPFactoryP( NUM(((fraction)pGetCoeff(p))), r->cf->extRing ); 294 295 pIter( p ); 295 296 … … 308 309 for ( i = L, p = f; i.hasItem(); i++, p=pNext(p) ) 309 310 { 310 lnumber c=(lnumber)pGetCoeff(p);311 p_Delete(& c->z,r->cf->extRing); // 2nd arg used to be nacRing312 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 ); 313 314 //nTest((number)c); 314 315 //#ifdef LDEBUG
Note: See TracChangeset
for help on using the changeset viewer.