Changeset fc94e12 in git
- Timestamp:
- Jul 29, 2011, 5:32:50 PM (12 years ago)
- Branches:
- (u'jengelh-datetime', 'ceac47cbc86fe4a15902392bdbb9bd2ae0ea02c6')(u'spielwiese', 'a800fe4b3e9d37a38c5a10cc0ae9dfa0c15a4ee6')
- Children:
- f625fe2dcd54b36842ce99b5160bfe10d0073f83
- Parents:
- 2b85f31ccb9b0e9c18d6a04d1701eecb4d30b074
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2011-07-29 17:32:50+02:00
- git-committer:
- Mohamed Barakat <mohamed.barakat@rwth-aachen.de>2011-11-09 13:01:16+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/fglmzero.cc
r2b85f31 rfc94e12 20 20 21 21 #include <kernel/mod2.h> 22 23 22 #ifdef HAVE_FACTORY 23 // assumes, that NOSTREAMIO is set in factoryconf.h, which is included 24 // by templates/list.h. 25 #include <factory/factory.h> 26 #include <factory/templates/ftmpl_list.h> 27 24 28 #include <misc/options.h> 25 29 #include <polys/polys.h> … … 34 38 #include <kernel/fglmvec.h> 35 39 #include <kernel/fglmgauss.h> 36 // assumes, that NOSTREAMIO is set in factoryconf.h, which is included37 // by templates/list.h.38 #include <factory/templates/ftmpl_list.h>39 40 #define PROT(msg) 40 41 #define STICKYPROT(msg) if (BTEST1(OPT_PROT)) Print(msg) … … 142 143 int * perm = (int *)omAlloc0( (_nfunc+1)*sizeof( int ) ); 143 144 maFindPerm( source->names, source->N, NULL, 0, currRing->names, 144 currRing->N, NULL, 0, perm, NULL , currRing->c h);145 nMapFunc nMap=n SetMap( source);145 currRing->N, NULL, 0, perm, NULL , currRing->cf->type); 146 nMapFunc nMap=n_SetMap( source, currRing); 146 147 147 148 matHeader ** temp = (matHeader **)omAlloc( _nfunc*sizeof( matHeader * )); … … 152 153 row--, elemp++ ) 153 154 { 154 newelem= nMap( elemp->elem );155 newelem= nMap( elemp->elem, source->cf, currRing->cf ); 155 156 nDelete( & elemp->elem ); 156 157 elemp->elem= newelem; … … 1177 1178 fglmzero( ring sourceRing, ideal & sourceIdeal, idhdl destRingHdl, ideal & destIdeal, BOOLEAN switchBack, BOOLEAN deleteIdeal ) 1178 1179 { 1179 idhdl initialRingHdl = currRingHdl;1180 //idhdl initialRingHdl = currRingHdl; 1180 1181 BOOLEAN fglmok; 1181 1182 … … 1183 1184 { 1184 1185 rChangeCurrRing( sourceRing ); 1185 currRingHdl=NULL;1186 } 1187 idealFunctionals L( 100, (currRing->N) );1186 //currRingHdl=NULL; 1187 } 1188 idealFunctionals L( 100, rVar(currRing) ); 1188 1189 fglmok = CalculateFunctionals( sourceIdeal, L ); 1189 1190 if ( deleteIdeal == TRUE ) 1190 1191 idDelete( & sourceIdeal ); 1191 rSetHdl( destRingHdl );1192 //rSetHdl( destRingHdl ); 1192 1193 if ( fglmok == TRUE ) 1193 1194 { … … 1195 1196 destIdeal= GroebnerViaFunctionals( L ); 1196 1197 } 1197 if ( (switchBack == TRUE) && (currRingHdl != initialRingHdl) )1198 rSetHdl( initialRingHdl );1198 //if ( (switchBack) && (currRingHdl != initialRingHdl) ) 1199 // rSetHdl( initialRingHdl ); 1199 1200 return fglmok; 1200 1201 }
Note: See TracChangeset
for help on using the changeset viewer.