Changeset e406de in git for Singular/sparsmat.cc
- Timestamp:
- Mar 15, 1999, 5:55:42 PM (25 years ago)
- Branches:
- (u'spielwiese', '2fa36c576e6a4ddbb1093b43c7f8e9835e17e52a')
- Children:
- d017b1ae6b39a6a201eaba488934eb88c33e9198
- Parents:
- bb354a914c634e35f8ef4d015eee5a1607c2d443
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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.