Changeset cbb89a7 in git
- Timestamp:
- Jul 23, 2019, 5:24:29 PM (4 years ago)
- Branches:
- (u'spielwiese', 'd1ba061a762c62d3a25159d8da8b6e17332291fa')
- Children:
- 78eaa84453d3bc2debf5cd1ddaf7dd28874d6139
- Parents:
- 408d0ac6fb66db4f8104c49c7a7da96edffb1870
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/LIB/standard.lib
r408d0a rcbb89a7 2572 2572 { 2573 2573 string name; 2574 def w; // int for name == "L", intvec otherwise2575 2574 int b1 = find(ordering, "(", 1); 2576 2575 if (b1 == 0) // no parentheses … … 2579 2578 if (name == "C" || name == "c") 2580 2579 { 2581 w = intvec(0);2580 intvec w = intvec(0); 2582 2581 } 2583 2582 else 2584 2583 { 2585 w = 1:n_vars;2584 intvec w = 1:n_vars; 2586 2585 } 2587 2586 } … … 2595 2594 if (name == "L") 2596 2595 { 2597 w = int(ordering[b1+1, b2-b1-1]);2596 int w = int(ordering[b1+1, b2-b1-1]); 2598 2597 } 2599 2598 else 2600 2599 { 2601 w = 1:int(ordering[b1+1, b2-b1-1]);2600 intvec w = 1:int(ordering[b1+1, b2-b1-1]); 2602 2601 } 2603 2602 } … … 2605 2604 { 2606 2605 list W = tuple_to_tokens(ordering[b1, b2-b1+1]); 2607 w = intvec(int(W[1..size(W)]));2606 intvec w = intvec(int(W[1..size(W)])); 2608 2607 } 2609 2608 }
Note: See TracChangeset
for help on using the changeset viewer.