Jutho / TensorKit.jl

A Julia package for large-scale tensor computations, with a hint of category theory
MIT License
234 stars 41 forks source link

transpose can hang #55

Closed maartenvd closed 3 years ago

maartenvd commented 3 years ago

the following hangs

t = Tensor(rand,ComplexF64,Rep[SU₂](0=>1)); transpose(t,(),(1,))

I quick'n dirty fix may be the following commit https://github.com/Jutho/TensorKit.jl/commit/c61b531a3f9c68b4184ff3f619509f593c21f7a5

Jutho commented 3 years ago

should be fixed on master; also the length zero case was failing (but would probably never have been called by the @planar macro).