Changeset 07f2e1c in git
- Timestamp:
- Apr 8, 2011, 1:23:08 PM (13 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', '38077648e7239f98078663eb941c3c979511150a')
- Children:
- 0b301eb684d2361d4bbb42f05cd0cca8ee0ea520
- Parents:
- 387e4ad0de2bde1bd0f45d858db7cfac490e8600
- Location:
- kernel
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
kernel/maps.cc
r387e4a r07f2e1c 231 231 if (nSetMap(theImageRing) != nCopy) 232 232 { 233 Werror("Coefficient fields must be equal");233 Werror("Coefficient fields/rings must be equal"); 234 234 return NULL; 235 235 } -
kernel/numbers.cc
r387e4a r07f2e1c 160 160 nInit_bigint=nr2mMapQ; 161 161 } 162 /*----------------------ring Z / 2^m----------------*/162 /*----------------------ring Z ----------------*/ 163 163 else if (rField_is_Ring_Z(r)) 164 164 { … … 364 364 nr2mInitExp(c,r); 365 365 n->cfInit = nr2mInit; 366 n->nCopy = n dCopy;366 n->nCopy = nr2mCopy; 367 367 n->n_Int = nr2mInt; 368 368 n->nAdd = nr2mAdd; -
kernel/ring.cc
r387e4a r07f2e1c 923 923 if (i!=len) 924 924 { 925 tmpR.parameter=(char**)omReallocSize(tmpR.parameter,len*sizeof(char_ptr),i*sizeof(char_ptr)); 925 tmpR.parameter=(char**)omReallocSize(tmpR.parameter, 926 len*sizeof(char_ptr), 927 i*sizeof(char_ptr)); 926 928 } 927 929 tmpR.P=i; … … 932 934 else if (rField_is_Ring(r1)||rField_is_Ring(r2)) 933 935 { 934 Werror("rSumInternal for rings coeffs"); 935 return -1; 936 if (r1->ringtype != r2->ringtype) 937 { 938 Werror("rSumInternal not yet implemented for %s", 939 "different coefficient rings"); 940 return -1; 941 } 942 else 943 { 944 tmpR.ch = rInternalChar(r1); 945 tmpR.ringtype = r1->ringtype; 946 if (r1->ringflaga != NULL) 947 { 948 omBin tmpBin = omGetSpecBin(sizeof(mpz_t)); 949 tmpR.ringflaga = (int_number)omAllocBin(tmpBin); 950 mpz_init_set(tmpR.ringflaga, (int_number)r1->ringflaga); 951 } 952 tmpR.ringflagb = r1->ringflagb; 953 tmpR.nr2mModul = r1->nr2mModul; 954 if (r1->nrnModul != NULL) 955 { 956 omBin tmpBin = omGetSpecBin(sizeof(mpz_t)); 957 tmpR.nrnModul = (int_number)omAllocBin(tmpBin); 958 mpz_init_set(tmpR.nrnModul, (int_number)r1->nrnModul); 959 } 960 } 936 961 } 937 962 #endif … … 1279 1304 } 1280 1305 } 1281 else if ((k==rVar(r1)) && (k==rVar(r2))) /* r1 and r2 are "quite" the same ring */ 1306 else if ((k==rVar(r1)) && (k==rVar(r2))) /* r1 and r2 are "quite" 1307 the same ring */ 1282 1308 /* copy r1, because we have the variables from r1 */ 1283 1309 { … … 1390 1416 idTest((ideal)C); 1391 1417 1392 nMapFunc nMap1 = nSetMap(R1); // can change something global: not usable after the next nSetMap call :( 1418 nMapFunc nMap1 = nSetMap(R1); /* can change something global: not usable 1419 after the next nSetMap call :( */ 1393 1420 // Create blocked C and D matrices: 1394 1421 for (i=1; i<= rVar(R1); i++) … … 1406 1433 1407 1434 1408 nMapFunc nMap2 = nSetMap(R2); // can change something global: not usable after the next nSetMap call :( 1435 nMapFunc nMap2 = nSetMap(R2); /* can change something global: not usable 1436 after the next nSetMap call :( */ 1409 1437 for (i=1; i<= rVar(R2); i++) 1410 1438 for (j=i+1; j<=rVar(R2); j++) -
kernel/rmodulo2m.cc
r387e4a r07f2e1c 460 460 } 461 461 462 number nr2mCopy(number a) 463 { 464 return a; 465 } 466 462 467 number nr2mMapMachineInt(number from) 463 468 { … … 515 520 && (src->ringflagb >= dst->ringflagb)) 516 521 { 517 return nr2m MapMachineInt;522 return nr2mCopy; 518 523 } 519 524 if (rField_is_Ring_Z(src)) -
kernel/rmodulo2m.h
r387e4a r07f2e1c 15 15 bit pattern '11..1' of length m */ 16 16 17 number nr2mCopy (number a); 17 18 BOOLEAN nr2mGreaterZero (number k); 18 19 number nr2mMult (number a, number b); -
kernel/rmodulon.cc
r387e4a r07f2e1c 428 428 if ( (src->ringtype > 0) 429 429 && (mpz_cmp(src->ringflaga, dst->ringflaga) == 0) 430 && (src->ringflagb == dst->ringflagb)) return nrn MapGMP;430 && (src->ringflagb == dst->ringflagb)) return nrnCopy; 431 431 else 432 432 {
Note: See TracChangeset
for help on using the changeset viewer.