Changeset e7a3e4 in git
- Timestamp:
- Jun 28, 2019, 12:10:53 PM (5 years ago)
- Branches:
- (u'spielwiese', '17f1d200f27c5bd38f5dfc6e8a0879242279d1d8')
- Children:
- 2547a87dad64e60844bcd9668e04b8fb86efdc64
- Parents:
- a9a5c25b8fcdd11965eb13df8c4dbc1fb5a2d1a63bf60ea4375573ca70d19a1802f43a5e8bb12050
- git-author:
- Hans Schoenemann <hannes@mathematik.uni-kl.de>2019-06-28 10:10:53+00:00
- git-committer:
- GitHub <noreply@github.com>2019-06-28 10:10:53+00:00
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/ring.lib
ra9a5c25 re7a3e4 1381 1381 } 1382 1382 1383 /* 1384 * parses 1385 * "0" and "(0)" to 0, 1386 * "32003" and "(32003)" to 32003, and 1387 * "(32003,a,b,c)" to 1388 * list(32003, list("a", "b", "c"), list(list("lp", 1:3)), ideal(0)) 1389 */ 1390 static proc parse_L1(string l1) 1391 { 1392 if (find(l1, "(", 1) == 0) // no parentheses 1393 { 1394 return(int(l1)); 1395 } 1396 list tokens = tuple_to_tokens(l1); 1397 if (size(tokens) == 1) 1398 { 1399 return(int(tokens[1])); 1400 } 1401 list L = int(tokens[1]); 1402 L[2] = list(tokens[2..size(tokens)]); 1403 L[3] = list(list("lp", 1:(size(tokens)-1))); 1404 L[4] = ideal(0); 1405 return(L); 1406 } 1407 1408 /* 1409 * parses 1410 * "x" to list("x") and 1411 * "(x,y,z)" to list("x", "y", "z") 1412 */ 1383 1413 static proc parse_L2(string l2) 1384 1414 { 1415 if (find(l2, "(", 1) == 0) // no parentheses 1416 { 1417 return(list(l2)); 1418 } 1385 1419 list V = tuple_to_tokens(l2); 1386 1420 return(V); … … 1434 1468 { 1435 1469 list L = parse_ordering(l3, n_vars); 1436 return( L);1470 return(list(L)); 1437 1471 } 1438 1472 // block orderings … … 1454 1488 ideal(0). If \"no_minpoly\" is given, then the minimal polynomial 1455 1489 in l1, if present, is set to 0. 1456 @* Shortcuts: Strings such as \"(x,y,z)\" can be given as l2. 1490 @* Shortcuts: Strings such as \"0\", \"(32003)\" or \"(0,a,b,c)\" can 1491 be given as l1. Indexed parameters as in \"(0,a(1..3))\" are 1492 not supported. Strings such as \"(x,y,z)\" can be given as l2. 1457 1493 Indexed variables as in \"(x(1..3),y,z)\" are not supported. 1458 1494 Strings representing orderings such as \"dp\" or \"(lp(3), ds(2))\" … … 1491 1527 1492 1528 /* L[1] */ 1493 if ( no_minpoly)1494 { 1495 if ( typeof(l1) == "list")1529 if (typeof(l2) == "list") 1530 { 1531 if (no_minpoly) 1496 1532 { 1497 if ( size(l1) == 4)1533 if (typeof(l1) == "list") 1498 1534 { 1499 if ( typeof(l1[4]) == "ideal")1535 if (size(l1) == 4) 1500 1536 { 1501 l1[4] = ideal(0); 1537 if (typeof(l1[4]) == "ideal") 1538 { 1539 l1[4] = ideal(0); 1540 } 1502 1541 } 1503 1542 } 1504 1543 } 1505 } 1506 L[1] = l1; 1544 L[1] = l1; 1545 } 1546 else 1547 { 1548 L[1] = parse_L1(l1); 1549 } 1507 1550 1508 1551 /* L[2] */ -
Singular/iparith.cc
r3bf60ea re7a3e4 1012 1012 if (v->next==NULL) 1013 1013 { 1014 a=(poly)u->Data(); // works also for VECTOR_CMD1015 1014 if (u->next==NULL) 1016 1015 { 1016 a=(poly)u->Data(); // works also for VECTOR_CMD 1017 1017 b=(poly)v->Data(); // works also for VECTOR_CMD 1018 1018 if ((a!=NULL) && (b!=NULL) … … 1027 1027 } 1028 1028 // u->next exists: copy v 1029 a=(poly)u->CopyD(POLY_CMD); // works also for VECTOR_CMD 1029 1030 b=pCopy((poly)v->Data()); 1030 1031 if ((a!=NULL) && (b!=NULL) -
kernel/GBEngine/kutil.cc
r3bf60ea re7a3e4 9154 9154 /*puts the elements of S also to T*/ 9155 9155 strat->initEcart(&h); 9156 enterT(h,strat);9156 /*if (toT) - already checked*/ enterT(h,strat); 9157 9157 strat->S_2_R[i] = strat->tl; 9158 9158 #ifdef HAVE_SHIFTBBA 9159 if ( currRing->isLPring)9159 if (/*(toT) && */(currRing->isLPring)) 9160 9160 enterTShift(h, strat); 9161 9161 #endif
Note: See TracChangeset
for help on using the changeset viewer.