jeanluct / braidlab

Matlab package for analyzing data using braids
GNU General Public License v3.0
23 stars 9 forks source link

Check for simultaneous crossings in databraid #94

Closed jeanluct closed 9 years ago

jeanluct commented 9 years ago

This shouldn't work: b=databraid([1 2],[1 1]). Simultaneous crossings are allowed, but only if they involve commuting generators.

jeanluct commented 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.

jeanluct commented 9 years ago

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.

jeanluct commented 9 years ago

In check_tcross need to sort sort the generators in each common-time block before taking their difference.