Changeset e406de in git
- Timestamp:
- Mar 15, 1999, 5:55:42 PM (25 years ago)
- Branches:
- (u'spielwiese', '8e0ad00ce244dfd0756200662572aef8402f13d5')
- Children:
- d017b1ae6b39a6a201eaba488934eb88c33e9198
- Parents:
- bb354a914c634e35f8ef4d015eee5a1607c2d443
- Location:
- Singular
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys-impl.cc
rbb354a re406de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys-impl.cc,v 1.2 1 1998-12-02 13:57:39 obachmanExp $ */4 /* $Id: polys-impl.cc,v 1.22 1999-03-15 16:55:41 Singular Exp $ */ 5 5 6 6 /*************************************************************** … … 376 376 w = a = pNew(); 377 377 #endif 378 memcpy(w,p,pMonomSize);378 pCopy2(w,p); 379 379 w->coef=nCopy(p->coef); 380 380 if (pNext(p)!=NULL) … … 388 388 a = pNext(a) = pNew(); 389 389 #endif 390 memcpy(a,p,pMonomSize);390 pCopy2(a,p); 391 391 a->coef=nCopy(p->coef); 392 392 pIter(p); -
Singular/polys1.cc
rbb354a re406de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: polys1.cc,v 1.1 8 1999-02-26 14:27:46Singular Exp $ */4 /* $Id: polys1.cc,v 1.19 1999-03-15 16:55:42 Singular Exp $ */ 5 5 6 6 /* … … 124 124 a1 = p1; 125 125 a2 = p2; 126 a = p = p New();126 a = p = pInit(); 127 127 nNew(&(p->coef)); 128 128 loop -
Singular/sparsmat.cc
rbb354a re406de 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: sparsmat.cc,v 1. 4 1999-03-03 16:58:52 Singular Exp $ */4 /* $Id: sparsmat.cc,v 1.5 1999-03-15 16:55:42 Singular Exp $ */ 5 5 6 6 /* … … 1364 1364 return; 1365 1365 } 1366 dummy = p New();1366 dummy = pInit(); 1367 1367 do 1368 1368 { … … 1378 1378 do 1379 1379 { 1380 h = pNext(h) = p New();1381 pSetComp(h,0);1380 h = pNext(h) = pInit(); 1381 //pSetComp(h,0); 1382 1382 for (i=pVariables; i; i--) 1383 1383 pSetExp(h,i,pGetExp(a,i)+pGetExp(t,i)); … … 1427 1427 } 1428 1428 res = NULL; 1429 e = p New();1429 e = pInit(); 1430 1430 lead = FALSE; 1431 1431 while (!lead) … … 1505 1505 { 1506 1506 const number x = pGetCoeff(b); 1507 poly tail = pNext(b), e = p New();1507 poly tail = pNext(b), e = pInit(); 1508 1508 poly h; 1509 1509 number y, yn; … … 1559 1559 int i; 1560 1560 1561 h = res = p New();1561 h = res = pInit(); 1562 1562 loop 1563 1563 { 1564 pSetComp(h,0);1564 //pSetComp(h,0); 1565 1565 for (i=pVariables; i; i--) 1566 1566 pSetExp(h,i,pGetExp(e,i)+pGetExp(t,i)); … … 1573 1573 return res; 1574 1574 } 1575 h = pNext(h) = p New();1575 h = pNext(h) = pInit(); 1576 1576 } 1577 1577 } … … 1596 1596 EXPONENT_TYPE w; 1597 1597 1598 r = h = res = p New();1598 r = h = res = pInit(); 1599 1599 loop 1600 1600 { … … 1609 1609 if (i == 0) 1610 1610 { 1611 pSetComp(h,0);1611 //pSetComp(h,0); 1612 1612 pSetm(h); 1613 1613 pSetCoeff0(h,nMult(y,x)); … … 1618 1618 } 1619 1619 r = h; 1620 h = pNext(h) = p New();1620 h = pNext(h) = pInit(); 1621 1621 } 1622 1622 else if (t == NULL)
Note: See TracChangeset
for help on using the changeset viewer.