Changeset 12e275 in git for Singular/ipshell.cc
- Timestamp:
- Dec 4, 2014, 5:51:33 PM (9 years ago)
- Branches:
- (u'spielwiese', 'a719bcf0b8dbc648b128303a49777a094b57592c')
- Children:
- f19aa6812e6421a0bbd161f43b974557d7f6b874
- Parents:
- fe6b623ec279088e48111ca37e0592c7d7a54822
- git-author:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-12-04 17:51:33+01:00
- git-committer:
- Oleksandr Motsak <motsak@mathematik.uni-kl.de>2014-12-15 18:49:40+01:00
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ipshell.cc
rfe6b62 r12e275 21 21 22 22 #include <coeffs/rmodulon.h> 23 #include <coeffs/longrat.h> 23 24 24 25 #include <polys/monomials/ring.h> … … 1307 1308 break; 1308 1309 case BIGINT_CMD: 1309 n_Delete(&IDNUMBER(pp),c urrRing->cf);1310 n_Delete(&IDNUMBER(pp),coeffs_BIGINT); 1310 1311 break; 1311 1312 case MAP_CMD: … … 1806 1807 LL->Init(2); 1807 1808 LL->m[0].rtyp=BIGINT_CMD; 1808 LL->m[0].data=nlMapGMP((number) R->cf->modBase, R->cf, R->cf); 1809 LL->m[0].data=nlMapGMP((number) R->cf->modBase, R->cf, R->cf); // TODO: what is this?? // extern number nlMapGMP(number from, const coeffs src, const coeffs dst); // FIXME: replace with n_InitMPZ(R->cf->modBase, coeffs_BIGINT); ? 1809 1810 LL->m[1].rtyp=INT_CMD; 1810 1811 LL->m[1].data=(void *) R->cf->modExponent; … … 2090 2091 if ((LL->nr >= 0) && LL->m[0].rtyp == BIGINT_CMD) 2091 2092 { 2092 number tmp= (number) LL->m[0].data; 2093 n_MPZ (modBase, tmp, coeffs_BIGINT); 2093 number tmp= (number) LL->m[0].data; // .CopyD()? see below 2094 n_MPZ (modBase, tmp, coeffs_BIGINT); // FIXME: deletes tmp: previous CopyD() should NOT be necessary! 2094 2095 } 2095 2096 else if (LL->nr >= 0 && LL->m[0].rtyp == INT_CMD) … … 5266 5267 else if ((pn->name != NULL) && (strcmp(pn->name, "integer") == 0)) 5267 5268 { 5269 // TODO: change to use coeffs_BIGINT!? 5268 5270 modBase = (mpz_ptr) omAlloc(sizeof(mpz_t)); 5269 5271 mpz_init_set_si(modBase, 0); … … 5287 5289 else if (pn->next->Typ()==BIGINT_CMD) 5288 5290 { 5289 number p=(number)pn->next->CopyD(); 5290 nlGMP(p,(number)modBase,coeffs_BIGINT); 5291 n lDelete(&p,coeffs_BIGINT);5291 number p=(number)pn->next->CopyD(); // FIXME: why CopyD() here if nlGMP should not overtake p!? 5292 nlGMP(p,(number)modBase,coeffs_BIGINT); // TODO? // extern void nlGMP(number &i, number n, const coeffs r); // FIXME: n_MPZ( modBase, p, coeffs_BIGINT); ? 5293 n_Delete(&p,coeffs_BIGINT); 5292 5294 } 5293 5295 }
Note: See TracChangeset
for help on using the changeset viewer.