Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revisionBoth sides next revision | ||
tutorial:caratheodory [2014/01/03 15:45] – external edit 127.0.0.1 | user_guide:caratheodory [2019/01/25 09:27] – ↷ Page moved from tutorial:caratheodory to user_guide:caratheodory oroehrig | ||
---|---|---|---|
Line 8: | Line 8: | ||
The rows of this matrix describe a cone //C//: | The rows of this matrix describe a cone //C//: | ||
< | < | ||
- | polytope > $M=new | + | polytope > $M = new Matrix< |
- | Matrix< | + | polytope (2)> |
+ | polytope (3)> | ||
+ | polytope (4)> | ||
+ | polytope (5)> | ||
+ | polytope (6)> | ||
+ | polytope (7)> | ||
+ | polytope (8)> | ||
+ | polytope (9)> | ||
+ | polytope (10)> | ||
polytope > $C=new Polytope< | polytope > $C=new Polytope< | ||
</ | </ | ||
Line 36: | Line 44: | ||
The following loop iterates over all invertible 6x6 submatrices of //M// and computes the unique representation of //x// as a linear combination of the rows of the submatrix. | The following loop iterates over all invertible 6x6 submatrices of //M// and computes the unique representation of //x// as a linear combination of the rows of the submatrix. | ||
< | < | ||
- | foreach (all_subsets_of_k(6, | + | > foreach (all_subsets_of_k(6, |
- | $B=$M-> | + | > $B = $M-> |
- | if (det($B)) { | + | > if (det($B)) { |
- | print lin_solve(transpose($B), | + | > print lin_solve(transpose($B), |
- | } | + | > } |
- | } | + | > } |
</ | </ | ||
This means that //x// cannot be represented as a non-negative linear combination of any six of the given generators of //C//. | This means that //x// cannot be represented as a non-negative linear combination of any six of the given generators of //C//. |