Changeset a29c12 in git for Singular/polys.cc
- Timestamp:
- Jan 27, 1998, 5:20:42 PM (26 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 69bba6723e83f4422080c051395b3190dea2224e
- Parents:
- 4f2d37e6d452cc3714ecb45890c403707cc9aba0
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/polys.cc
r4f2d37e ra29c12 1 2 1 /**************************************** 3 2 * Computer Algebra System SINGULAR * 4 3 ****************************************/ 5 /* $Id: polys.cc,v 1.1 4 1998-01-16 08:24:04 SingularExp $ */4 /* $Id: polys.cc,v 1.15 1998-01-27 16:20:42 pohl Exp $ */ 6 5 7 6 /* … … 1287 1286 /*2 1288 1287 * sets the comparision routine for monomials: for the first block 1289 * of variables (o r is the number of the ordering)1288 * of variables (o_r is the number of the ordering) 1290 1289 */ 1291 1290 #ifdef COMP_FAST 1292 static void SimpleChoose(int o r, int comp_order, pCompProc *p)1291 static void SimpleChoose(int o_r, int comp_order, pCompProc *p) 1293 1292 #else 1294 static void SimpleChoose(int o r, pCompProc *p)1293 static void SimpleChoose(int o_r, pCompProc *p) 1295 1294 #endif 1296 1295 { … … 1302 1301 else 1303 1302 { 1304 switch(o r)1303 switch(o_r) 1305 1304 { 1306 1305 case ringorder_lp: … … 1328 1327 #ifdef PDEBUG 1329 1328 default: 1330 Werror("wrong internal ordering:%d at %s, l:%d\n",o r,__FILE__,__LINE__);1331 #endif 1332 } 1333 } 1334 if (o r == ringorder_lp || or == ringorder_ls)1329 Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__); 1330 #endif 1331 } 1332 } 1333 if (o_r == ringorder_lp || o_r == ringorder_ls) 1335 1334 { 1336 1335 pLexOrder=TRUE; 1337 1336 pFDeg = pTotaldegree; 1338 1337 pLDeg = ldeg1c; 1339 if (o r == ringorder_ls) pLexSgn = -1;1338 if (o_r == ringorder_ls) pLexSgn = -1; 1340 1339 } 1341 1340 … … 1343 1342 #endif 1344 1343 #ifdef COMP_FAST 1345 switch(o r)1344 switch(o_r) 1346 1345 { 1347 1346 case ringorder_dp: … … 1353 1352 pSetVarIndicies_RevLex(pVariables); 1354 1353 pLexSgn = -1; 1355 if (comp_order == ringorder_C || o r == ringorder_unspec)1354 if (comp_order == ringorder_C || o_r == ringorder_unspec) 1356 1355 { 1357 1356 if (pVariables1W == 1) … … 1413 1412 break; 1414 1413 default: 1415 Werror("wrong internal ordering:%d at %s, l:%d\n",o r,__FILE__,__LINE__);1414 Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__); 1416 1415 #endif 1417 1416 } 1418 1417 1419 if (o r == ringorder_lp || or == ringorder_ls)1418 if (o_r == ringorder_lp || o_r == ringorder_ls) 1420 1419 { 1421 1420 pLexOrder=TRUE; 1422 1421 pFDeg = pTotaldegree; 1423 1422 pLDeg = ldeg1c; 1424 if (o r == ringorder_ls)1423 if (o_r == ringorder_ls) 1425 1424 pSetVarIndicies_Lex(pVariables); 1426 1425 } … … 1435 1434 /*2 1436 1435 * sets pSetm 1437 * (according o r = order of first block)1438 */ 1439 static void SetpSetm(int o r, int ip)1440 { 1441 switch(o r)1436 * (according o_r = order of first block) 1437 */ 1438 static void SetpSetm(int o_r, int ip) 1439 { 1440 switch(o_r) 1442 1441 { 1443 1442 case ringorder_lp: … … 1470 1469 #ifdef TEST 1471 1470 default: 1472 Werror("wrong internal ordering:%d at %s, l:%d\n",o r,__FILE__,__LINE__);1471 Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__); 1473 1472 #endif 1474 1473 } … … 1478 1477 /*2 1479 1478 * sets the comparision routine for monomials: for the first block 1480 * of variables (o r is the number of the ordering)1479 * of variables (o_r is the number of the ordering) 1481 1480 */ 1482 1481 #ifdef COMP_FAST 1483 static void SimpleChooseC(int o r, int comp_order, pCompProc *p)1482 static void SimpleChooseC(int o_r, int comp_order, pCompProc *p) 1484 1483 #else 1485 static void SimpleChooseC(int o r, pCompProc *p)1484 static void SimpleChooseC(int o_r, pCompProc *p) 1486 1485 #endif 1487 1486 { … … 1493 1492 else 1494 1493 { 1495 switch(o r)1494 switch(o_r) 1496 1495 { 1497 1496 case ringorder_lp: … … 1519 1518 #ifdef PDEBUG 1520 1519 default: 1521 Werror("wrong internal ordering:%d at %s, l:%d\n",o r,__FILE__,__LINE__);1522 #endif 1523 } 1524 } 1525 if (o r == ringorder_lp || or == ringorder_ls)1520 Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__); 1521 #endif 1522 } 1523 } 1524 if (o_r == ringorder_lp || o_r == ringorder_ls) 1526 1525 { 1527 1526 pLexOrder=TRUE; 1528 1527 pFDeg = pTotaldegree; 1529 1528 pLDeg = ldeg1c; 1530 if (o r == ringorder_ls) pLexSgn = -1;1529 if (o_r == ringorder_ls) pLexSgn = -1; 1531 1530 } 1532 1531 … … 1534 1533 #endif 1535 1534 #ifdef COMP_FAST 1536 switch(o r)1535 switch(o_r) 1537 1536 { 1538 1537 case ringorder_dp: … … 1575 1574 break; 1576 1575 default: 1577 Werror("wrong internal ordering:%d at %s, l:%d\n",o r,__FILE__,__LINE__);1578 #endif 1579 } 1580 if (o r == ringorder_lp || or == ringorder_ls)1576 Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__); 1577 #endif 1578 } 1579 if (o_r == ringorder_lp || o_r == ringorder_ls) 1581 1580 { 1582 1581 pLexOrder=TRUE; 1583 1582 pFDeg = pTotaldegree; 1584 1583 pLDeg = ldeg1c; 1585 if (o r == ringorder_ls)1584 if (o_r == ringorder_ls) 1586 1585 pSetVarIndicies_Lex(pVariables); 1587 1586 } … … 1596 1595 /*2 1597 1596 * sets the comparision routine for monomials: for all but the first 1598 * block of variables (ip is the block number, o r the number of the ordering)1599 */ 1600 static void HighSet(int ip, int o r)1601 { 1602 switch(o r)1597 * block of variables (ip is the block number, o_r the number of the ordering) 1598 */ 1599 static void HighSet(int ip, int o_r) 1600 { 1601 switch(o_r) 1603 1602 { 1604 1603 case ringorder_lp: … … 1658 1657 #ifdef TEST 1659 1658 default: 1660 Werror("wrong internal ordering:%d at %s, l:%d\n",o r,__FILE__,__LINE__);1659 Werror("wrong internal ordering:%d at %s, l:%d\n",o_r,__FILE__,__LINE__); 1661 1660 #endif 1662 1661 }
Note: See TracChangeset
for help on using the changeset viewer.