Closed jeanluct closed 9 years ago
Also added a few other tests: the private method check_tcross
validates tcross
by checking that the number of times is the same as the number of generators, that the times are nondecreasing, and the original issue above.
Oops... need to reopen this. databraid([4 1 3],[1 1 1])
shouldn't work, since even though the different between the adjacent generators is <= 1, 4 and 3 don't commute.
In check_tcross
need to sort sort the generators in each common-time block before taking their difference.
This shouldn't work:
b=databraid([1 2],[1 1])
. Simultaneous crossings are allowed, but only if they involve commuting generators.