- Timestamp:
- Apr 24, 1998, 6:39:27 PM (26 years ago)
- Branches:
- (u'spielwiese', 'd1b01e9d51ade4b46b745d3bada5c5f3696be3a8')
- Children:
- 6ddbf53b34c0fdce02514053d39a0599dfffe3ef
- Parents:
- a02c2049dee0e5262a296749c338db97318a644a
- Location:
- Singular
- Files:
-
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/ChangeLog
ra02c204 r49eeee 1 Fri Apr 24 18:25:23 MET DST 1998 hannes 2 * fixed bug in maps.cc: size of monom is not pMonomSize but mmGetSpecSize() 3 * changed header in tesths.cc 4 * changed handling of ring changes (polys*.cc ring.cc) 1 5 Thu Apr 23 20:53:06 MET DST 1998 hannes 2 6 * removed END_GRAMMAR ("RETURN") from iparith.cc, grammar.y -
Singular/grammar.y
ra02c204 r49eeee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: grammar.y,v 1.2 8 1998-04-24 10:01:10 Singular Exp $ */4 /* $Id: grammar.y,v 1.29 1998-04-24 16:39:20 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT: SINGULAR shell grammatik … … 256 256 %token <i> WHILE_CMD 257 257 %token <i> RETURN 258 %token <i> END_GRAMMAR259 258 %token <i> PARAMETER 260 259 -
Singular/maps.cc
ra02c204 r49eeee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: maps.cc,v 1. 8 1998-04-08 16:04:28Singular Exp $ */4 /* $Id: maps.cc,v 1.9 1998-04-24 16:39:21 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - the mapping of polynomials to other rings … … 211 211 // change to new ring 212 212 rChangeCurrRing(&tmpR, FALSE); 213 sizeofpoly = pMonomSize; /*POLYSIZE+sizeof(monomial);*/213 sizeofpoly = mmGetSpecSize(); 214 214 if (id==NULL) 215 215 j = 0; -
Singular/mmemory.h
ra02c204 r49eeee 4 4 * Computer Algebra System SINGULAR * 5 5 ****************************************/ 6 /* $Id: mmemory.h,v 1. 5 1998-01-16 12:40:02 obachmanExp $ */6 /* $Id: mmemory.h,v 1.6 1998-04-24 16:39:22 Singular Exp $ */ 7 7 /* 8 8 * ABSTRACT … … 50 50 51 51 size_t mmSizeL( void* ); 52 #define mmGetSpecSize() mm_specSize 53 54 extern size_t mm_specSize; 52 55 53 56 #ifdef MM_STAT -
Singular/polys.cc
ra02c204 r49eeee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys.cc,v 1.2 3 1998-04-23 18:17:39Singular Exp $ */4 /* $Id: polys.cc,v 1.24 1998-04-24 16:39:24 Singular Exp $ */ 5 5 6 6 /* … … 1373 1373 { 1374 1374 int i; 1375 pComponentOrder=1; 1376 if (ppNoether!=NULL) pDelete(&ppNoether); 1377 #ifdef SRING 1378 pSRING=FALSE; 1379 pAltVars=r->N+1; 1380 #endif 1375 1381 pVariables = r->N; 1376 if (complete) 1377 { 1378 pComponentOrder=1; 1379 if (ppNoether!=NULL) pDelete(&ppNoether); 1380 #ifdef SRING 1381 pSRING=FALSE; 1382 pAltVars=r->N+1; 1383 #endif 1384 1385 // set the various size parameters and initialize memory 1386 if ((((pVariables+1)*sizeof(Exponent_t)) % sizeof(void*)) == 0) 1387 pVariables1W = (pVariables+1)*sizeof(Exponent_t) / sizeof(void*); 1388 else 1389 pVariables1W = ((pVariables+1)*sizeof(Exponent_t) / sizeof(void*)) + 1; 1390 1391 if ((((pVariables)*sizeof(Exponent_t)) % sizeof(void*)) == 0) 1392 pVariablesW = (pVariables)*sizeof(Exponent_t) / sizeof(void*); 1393 else 1394 pVariablesW = ((pVariables)*sizeof(Exponent_t) / sizeof(void*)) + 1; 1395 } 1382 1383 // set the various size parameters and initialize memory 1384 if ((((pVariables+1)*sizeof(Exponent_t)) % sizeof(void*)) == 0) 1385 pVariables1W = (pVariables+1)*sizeof(Exponent_t) / sizeof(void*); 1386 else 1387 pVariables1W = ((pVariables+1)*sizeof(Exponent_t) / sizeof(void*)) + 1; 1388 1389 if ((((pVariables)*sizeof(Exponent_t)) % sizeof(void*)) == 0) 1390 pVariablesW = (pVariables)*sizeof(Exponent_t) / sizeof(void*); 1391 else 1392 pVariablesW = ((pVariables)*sizeof(Exponent_t) / sizeof(void*)) + 1; 1396 1393 1397 1394 pMonomSize = POLYSIZE + (pVariables + 1) * sizeof(Exponent_t); 1395 if ((pMonomSize % sizeof(void*)) == 0) 1396 { 1397 pMonomSizeW = pMonomSize/sizeof(void*); 1398 } 1399 else 1400 { 1401 pMonomSizeW = pMonomSize/sizeof(void*) + 1; 1402 pMonomSize = pMonomSizeW*sizeof(void*); 1403 } 1398 1404 1399 1405 // Initialize memory management … … 1402 1408 if (complete) 1403 1409 { 1404 if ((pMonomSize % sizeof(void*)) == 0)1405 {1406 pMonomSizeW = pMonomSize/sizeof(void*);1407 }1408 else1409 {1410 pMonomSizeW = pMonomSize/sizeof(void*) + 1;1411 pMonomSize = pMonomSizeW*sizeof(void*);1412 }1413 1414 1410 // Set default Var Indicies 1415 1411 pSetVarIndicies(pVariables); 1416 1412 1417 1413 pOrdSgn = r->OrdSgn; 1418 1414 pVectorOut=(r->order[0]==ringorder_c); … … 1477 1473 } 1478 1474 while (i != 0); 1479 1475 1480 1476 pComp0 = BlockComp; 1481 1477 if ((order[0]!=ringorder_c)&&(order[0]!=ringorder_C)) … … 1487 1483 pLDeg = ldeg1; 1488 1484 } 1489 // may be improved: pTotaldegree for lp/dp/ls/.. blocks 1490 pFDeg = pWTotaldegree; 1485 pFDeg = pWTotaldegree; // may be improved: pTotaldegree for lp/dp/ls/.. blocks 1491 1486 } 1492 1487 if ((pLexOrder) || (pOrdSgn==-1)) -
Singular/polys1.cc
ra02c204 r49eeee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.1 2 1998-04-23 09:52:15 Singular Exp $ */4 /* $Id: polys1.cc,v 1.13 1998-04-24 16:39:25 Singular Exp $ */ 5 5 6 6 /* … … 34 34 BOOLEAN pIsConstant(poly p) 35 35 { 36 int i; 37 38 for (i=pVariables;i;i--) 39 { 40 if (pGetExp(p,i)!=0) return FALSE; 41 } 42 if (pGetComp(p)) return FALSE; 36 if (p!=NULL) 37 { 38 int i; 39 for (i=pVariables;i;i--) 40 { 41 if (pGetExp(p,i)!=0) return FALSE; 42 } 43 if (pGetComp(p)) return FALSE; 44 } 43 45 return TRUE; 44 46 } -
Singular/ring.cc
ra02c204 r49eeee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: ring.cc,v 1.2 2 1998-04-23 18:17:37Singular Exp $ */4 /* $Id: ring.cc,v 1.23 1998-04-24 16:39:26 Singular Exp $ */ 5 5 6 6 /* … … 49 49 /*------------ set global ring vars --------------------------------*/ 50 50 currRing = r; 51 currQuotient=NULL; 51 52 if (r != NULL) 52 53 { 53 /*------------ set global ring vars --------------------------------*/ 54 currQuotient=r->qideal; 55 56 /*------------ set redTail, except reset by nSetChar or pChangeRing */ 54 57 55 if (complete) 58 56 { 57 /*------------ set global ring vars --------------------------------*/ 58 currQuotient=r->qideal; 59 /*------------ set redTail, except reset by nSetChar or pChangeRing */ 59 60 test |= Sy_bit(OPT_REDTAIL); 60 61 } … … 101 102 spSet(r); 102 103 } 103 }104 else105 {106 currQuotient=NULL;107 104 } 108 105 } -
Singular/tesths.cc
ra02c204 r49eeee 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: tesths.cc,v 1.3 4 1998-04-17 09:39:00 obachmanExp $ */4 /* $Id: tesths.cc,v 1.35 1998-04-24 16:39:26 Singular Exp $ */ 5 5 6 6 /* … … 469 469 printf( 470 470 " Welcome to SINGULAR /\n" 471 " A Computer Algebra System o< \n"472 " for Commutative Algebra and Algebraic Geometry \\ \n\n"471 " A Computer Algebra System o< %s\n" 472 " for Commutative Algebra and Algebraic Geometry \\ %s\n\n" 473 473 "by: G.-M. Greuel, G. Pfister, H. Schoenemann\n" 474 474 "Fachbereich Mathematik der Universitaet, D-67653 Kaiserslautern\n" 475 #if 0 475 476 "contributions: O.Bachmann,W.Decker,H.Grassmann,B.Martin,M.Messollen,W.Neumann,\n" 476 477 "\tW.Pohl,T.Siebert,R.Stobbe,T.Wichmann\n" 477 "e-mail: singular@mathematik.uni-kl.de\n"); 478 "e-mail: singular@mathematik.uni-kl.de\n", S_VERSION1,S_VERSION2); 479 #endif 480 , S_VERSION1,S_VERSION2); 481 #if 0 478 482 printf("%s %s (%d)",S_VERSION1,S_VERSION2, SINGULAR_VERSION_ID); 479 printf("\n\nPlease note: EVERY COMMAND MUST END WITH A SEMICOLON \";" 483 #endif 484 printf("\nPlease note: EVERY COMMAND MUST END WITH A SEMICOLON \";" 480 485 "\"\n(e.g., help; help command; help General syntax; help ring; quit;)\n\n"); 481 486 } -
Singular/tok.h
ra02c204 r49eeee 7 7 * ABSTRACT: token for interpreter, as types; general macros 8 8 */ 9 /* $Id: tok.h,v 1.1 4 1998-04-01 18:56:30Singular Exp $ */9 /* $Id: tok.h,v 1.15 1998-04-24 16:39:27 Singular Exp $ */ 10 10 11 11 #ifndef MYYSTYPE … … 56 56 DET_CMD, 57 57 DUMP_CMD, 58 END_GRAMMAR, 58 59 EXTGCD_CMD, 59 60 FAC_CMD,
Note: See TracChangeset
for help on using the changeset viewer.