jeanluct / braidlab

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

databraid.tensor doesn't do the right thing #93

Closed jeanluct closed 9 years ago

jeanluct commented 9 years ago

Consider the braid b=databraid([1 2]). This defaults to the crossing times b.tcross = [1 2].

Now

>> c = tensor(b,b), c.tcross

c =  < 1  2  4  5 >

ans =     1     1     2     2

This is wrong! In the current state I simply sort the times. It's ok for two commuting generators to occur at the same time, but not for noncommuting ones. The right answer should be c = < 1 4 2 5 > with c.tcross = [1 1 2 2].