Changeset 098f98f in git for kernel/fglmzero.cc
- Timestamp:
- Jan 6, 2010, 3:55:03 PM (14 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- eaf66fe9969d8b8c2cf369ea94e7616f379a3229
- Parents:
- b46774f2ffde4294abff59d9fdb51d1914924c72
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/fglmzero.cc
rb46774 r098f98f 30 30 #include "omalloc.h" 31 31 #include "kstd1.h" // for kNF (see fglmquot) 32 #include "intvec.h" 32 #include "intvec.h" 33 33 #include "fglm.h" 34 34 #include "fglmvec.h" … … 593 593 void 594 594 internalCalculateFunctionals( const ideal & theIdeal, idealFunctionals & l, 595 595 fglmSdata & data ) 596 596 { 597 597 … … 663 663 static BOOLEAN 664 664 CalculateFunctionals( const ideal & theIdeal, idealFunctionals & l, 665 665 poly & p, fglmVector & v ) 666 666 { 667 667 fglmSdata data( theIdeal ); … … 669 669 // STICKYPROT("Calculating vector rep\n"); 670 670 v = data.getVectorRep( p ); 671 // if ( v.isZero() ) 671 // if ( v.isZero() ) 672 672 // STICKYPROT("vectorrep is 0\n"); 673 673 return ( data.state() ); … … 1019 1019 static ideal 1020 1020 GroebnerViaFunctionals( const idealFunctionals & l, 1021 1021 fglmVector iv = fglmVector() ) 1022 1022 // If iv is zero, calculates the groebnerBasis for the ideal which is 1023 1023 // defined by l. … … 1039 1039 initv = iv; 1040 1040 } 1041 1041 1042 1042 poly one = pOne(); 1043 1043 data.updateCandidates( one, initv ); … … 1104 1104 for(i = pVariables; i > 0; i--) varpermutation[pVariables+1-i] = (*iv)[i-1]; 1105 1105 delete iv; 1106 1106 1107 1107 for (i= 1; i <= pVariables; i++ ) 1108 1108 { … … 1157 1157 // for a descritption of the parameters see fglm.h 1158 1158 BOOLEAN 1159 fglmzero( idhdl sourceRingHdl, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal )1159 fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal ) 1160 1160 { 1161 1161 idhdl initialRingHdl = currRingHdl; 1162 1162 BOOLEAN fglmok; 1163 1163 1164 if ( currRingHdl != sourceRingHdl ) 1165 rSetHdl( sourceRingHdl ); 1164 if ( currRing != sourceRing ) 1165 { 1166 rChangeCurrRing( sourceRing ); 1167 currRingHdl=NULL; 1168 } 1166 1169 idealFunctionals L( 100, pVariables ); 1167 1170 fglmok = CalculateFunctionals( sourceIdeal, L ); … … 1169 1172 idDelete( & sourceIdeal ); 1170 1173 rSetHdl( destRingHdl ); 1171 if ( fglmok == TRUE ) { 1172 L.map( IDRING( sourceRingHdl ) ); 1174 if ( fglmok == TRUE ) 1175 { 1176 L.map( sourceRing ); 1173 1177 destIdeal= GroebnerViaFunctionals( L ); 1174 1178 }
Note: See TracChangeset
for help on using the changeset viewer.