Skip to content

Commit e79c8c5

Browse files
ollieclarke8787d-torrance
authored andcommitted
remove commented code at eof
1 parent 45838cf commit e79c8c5

File tree

1 file changed

+0
-69
lines changed

1 file changed

+0
-69
lines changed

M2/Macaulay2/packages/AllMarkovBases.m2

Lines changed: 0 additions & 69 deletions
Original file line numberDiff line numberDiff line change
@@ -1431,72 +1431,3 @@ installPackage "AllMarkovBases"
14311431
check AllMarkovBases
14321432

14331433
viewHelp AllMarkovBases
1434-
1435-
1436-
1437-
1438-
1439-
-- computeFiberInternalDecompose = method(
1440-
-- Options => {
1441-
-- ReturnConnectedComponents => false,
1442-
-- FiberAlgorithm => "fast"
1443-
-- }
1444-
-- );
1445-
-- computeFiberInternalDecompose (Matrix,List) := opts -> (A,val) -> (
1446-
-- if opts.FiberAlgorithm == "decompose" and not A.cache#?"Ring" then(
1447-
-- A.cache#"Ring" = ZZ(monoid[Variables => 2*numRows A + numColumns A,MonomialOrder=>Eliminate (2*numRows A)]);
1448-
-- A.cache#"RingGenerators" = gens A.cache#"Ring";
1449-
-- A.cache#"toricIdeal"=toricGroebner(id_(ZZ^(numRows A)) | -id_(ZZ^(numRows A)) | A, A.cache#"Ring");
1450-
-- );
1451-
-- if (A.cache#"fiberStarters")#?val and opts.ReturnConnectedComponents then (
1452-
-- out := for z in pairs A.cache#"fiberValues" list(
1453-
-- print z#1;
1454-
-- if z#1==val or not (z#1 << val) then continue;
1455-
-- resid := val-z#1;
1456-
-- if not (A.cache#"fibers")#?resid then fibRecursion(A,resid,FiberAlgorithm=>opts.FiberAlgorithm);
1457-
-- if #((A.cache#"fibers")#resid)==0 then continue;
1458-
-- fibAdd((A.cache#"posNeg")#(z#0),(A.cache#"fibers")#resid)
1459-
-- );
1460-
-- G := new HashTable from for i from 0 to #out-1 list (out#i,for j from i+1 to #out-1 list if not #intersect(out#i,out#j)==0 then out#j else continue);
1461-
-- out = apply(connectedComponents graph(out,pairs G),z->toList union z);
1462-
-- out = out | apply(toList ((A.cache#"fiberStarters")#val - (flatten out)),v->{v});
1463-
-- (A.cache#"fiberComponents")#val = out;
1464-
-- (A.cache#"fibers")#val = flatten out;
1465-
-- )else fibRecursion(A,val,FiberAlgorithm=>opts.FiberAlgorithm);
1466-
-- );
1467-
1468-
-- -- recursive method using decompose algorithm (unexported)
1469-
-- fibRecursion = method(
1470-
-- Options => {
1471-
-- FiberAlgorithm => "decompose"
1472-
-- }
1473-
1474-
-- );
1475-
-- fibRecursion (Matrix,List) := opts -> (A, val) -> (
1476-
-- print val;
1477-
-- out := union for z in pairs A.cache#"fiberValues" list(
1478-
-- if not (z#1 << val) then continue;
1479-
-- if z#1==val and (A.cache#"fiberStarters")#?val then continue (A.cache#"posNeg")#(z#0);
1480-
-- resid := val-z#1;
1481-
-- if not (A.cache#"fibers")#?resid then fibRecursion(A,resid,FiberAlgorithm=>opts.FiberAlgorithm);
1482-
-- if #((A.cache#"fibers")#resid) == 0 then continue;
1483-
-- fibAdd((A.cache#"posNeg")#(z#0),(A.cache#"fibers")#resid)
1484-
-- );
1485-
-- if #out==0 then(
1486-
-- if opts.FiberAlgorithm == "markov" then (
1487-
-- for row in entries toricMarkov ((matrix vector val) | A) do(
1488-
-- r := drop(row,1);
1489-
-- if row#0 == 1 and all(r,z->z<=0) then (out = set{-r}; break;);
1490-
-- );
1491-
-- )else (
1492-
-- e:=first exponents (product(for i from 0 to #val-1 list if val#i>0 then ((A.cache#"RingGenerators")#i)^(val#i) else ((A.cache#"RingGenerators")#(i+numRows A))^(-val#i)) % A.cache#"toricIdeal");
1493-
-- if take(e,2*numRows A) == toList((2*numRows A):0) then out = set{take(e,-numColumns A)};
1494-
-- );
1495-
-- );
1496-
-- (A.cache#"fibers")#val = out;
1497-
-- );
1498-
1499-
-- fibAdd = method();
1500-
-- fibAdd (Set,Set) := (L1,L2) -> (
1501-
-- set flatten for l1 in keys L1 list for l2 in keys L2 list l1+l2
1502-
-- );

0 commit comments

Comments
 (0)