-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Labels
Description
An iet with integral lengths is completely periodic. It is then interesting to know
- how many periodic components there are
- what shapes do they have (width and height)
It would be nice to be able to do this with intervalxt and compare timings with the code in surface_dynamics.interval_exchanges.integer_iet. In the end we might get rid of this part of surface_dynamics.
A typical run that run through all integral vectors with sum 50 for the permutation 0123456 / 6543210
import surface_dynamics.interval_exchanges.integer_iet as ii
sage: %time ii.interval_exchange_statistics([0,1,2,3,4,5,6], [6,5,4,3,2,1,0], 50)
CPU times: user 25.1 s, sys: 17 ms, total: 25.1 s
Wall time: 25.2 s
{3: 5996550, 4: 332178, 2: 6934796, 1: 720292}