ITensor / NDTensors.jl

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

Make a lazily permuted Tensor wrapper #19

Open mtfishman opened 4 years ago

mtfishman commented 4 years ago

It might be nice to have a lazily permuted Tensor wrapper, similar to Julia's PermutedDimsArray. We could define it as something like PermutedDims{<:Tensor} that stores a view of the Tensor as well as the permutation of the dimensions. A first use case would be to help with compatibility with Strided.jl, where we could have a conversion from our lazy permuted Tensor type to their lazy permuted array type.