Changeset f0549c8 in git
- Timestamp:
- Dec 17, 2011, 9:38:50 PM (11 years ago)
- Branches:
- (u'spielwiese', 'f6c3dc58b0df4bd712574325fe76d0626174ad97')
- Children:
- 0fc4c8bd0177d4673beebe5a386cd69e4161f080
- Parents:
- 27637404a579c5be90dfdaadf21dd3a6e892901b
- git-author:
- Christian Eder <ederc@mathematik.uni-kl.de>2011-12-17 21:38:50+01:00
- git-committer:
- Christian Eder <ederc@mathematik.uni-kl.de>2011-12-19 15:30:56+01:00
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/fglm.cc
r276374 rf0549c8 313 313 // Now the settings are compatible with FGLM 314 314 assumeStdFlag( (leftv)ih ); 315 if ( fglmzero( IDRING(sourceRingHdl), sourceIdeal, destRingHdl, destIdeal, FALSE, (currQuotient != NULL) ) == FALSE )315 if ( fglmzero( IDRING(sourceRingHdl), sourceIdeal, IDRING(destRingHdl), destIdeal, FALSE, (currQuotient != NULL) ) == FALSE ) 316 316 state= FglmNotReduced; 317 317 } -
kernel/fglm.h
r276374 rf0549c8 82 82 // if deleteIdeal==FALSE, then nothing happens to sourceIdeal 83 83 BOOLEAN 84 fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destideal, BOOLEAN switchBack = TRUE, BOOLEAN deleteIdeal = FALSE );84 fglmzero( ring sourceRing, ideal & sourceIdeal, ring destRing, ideal & destideal, BOOLEAN switchBack = TRUE, BOOLEAN deleteIdeal = FALSE ); 85 85 86 86 BOOLEAN fglmquot( ideal sourceIdeal, poly quot, ideal & destIdeal ); -
kernel/fglmzero.cc
r276374 rf0549c8 987 987 pdenom= nInit( 1 ); 988 988 number vdenom = v.clearDenom(); 989 if ( ! nIs One( vdenom ) && ! nIsZero( vdenom ) ) {989 if ( ! nIsZero( vdenom ) && ! nIsOne( vdenom ) ) { 990 990 p.setelem( p.size(), vdenom ); 991 991 } … … 994 994 } 995 995 number gcd = v.gcd(); 996 if ( ! nIs One( gcd ) && ! nIsZero( gcd ) ) {996 if ( ! nIsZero( gcd ) && ! nIsOne( gcd ) ) { 997 997 v /= gcd; 998 998 number temp= nMult( pdenom, gcd ); … … 1020 1020 nDelete( & fac2 ); 1021 1021 number gcd = v.gcd(); 1022 if ( ! nIs One( gcd ) && ! nIsZero( gcd ) ) {1022 if ( ! nIsZero( gcd ) && ! nIsOne( gcd ) ) { 1023 1023 v /= gcd; 1024 1024 number temp= nMult( pdenom, gcd ); … … 1186 1186 // for a descritption of the parameters see fglm.h 1187 1187 BOOLEAN 1188 fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )1189 { 1190 //idhdl initialRingHdl = currRingHdl;1188 fglmzero( ring sourceRing, ideal & sourceIdeal, ring destRing, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal ) 1189 { 1190 ring initialRing = currRing; 1191 1191 BOOLEAN fglmok; 1192 1192 … … 1194 1194 { 1195 1195 rChangeCurrRing( sourceRing ); 1196 //currRingHdl=NULL;1197 1196 } 1198 1197 idealFunctionals L( 100, rVar(currRing) ); … … 1200 1199 if ( deleteIdeal == TRUE ) 1201 1200 idDelete( & sourceIdeal ); 1202 //rSetHdl( destRingHdl);1201 rChangeCurrRing( destRing ); 1203 1202 if ( fglmok == TRUE ) 1204 1203 { … … 1206 1205 destIdeal= GroebnerViaFunctionals( L ); 1207 1206 } 1208 //if ( (switchBack) && (currRingHdl != initialRingHdl) )1209 // rSetHdl( initialRingHdl);1207 if ( (switchBack) && (currRing != initialRing) ) 1208 rChangeCurrRing( initialRing ); 1210 1209 return fglmok; 1211 1210 }
Note: See TracChangeset
for help on using the changeset viewer.