ITensor / NDTensors.jl

A Julia package for n-dimensional sparse tensors.
Apache License 2.0
27 stars 7 forks source link

Fix uncombine bug when combined index is not first index #22

Closed mtfishman closed 4 years ago

mtfishman commented 4 years ago

Uncombining led to errors when the combined index wasn't the first one, since the uncombine code has that built in as an assumption. This just permutes it to the first position, if it is not already in the first position (I guess the code to do that was already there, but commented out for some reason).

I'm sure there are improvements and optimizations we can make to the combine and uncombine code. That will require a devoted effort at some point.