ITensor / NDTensors.jl

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

Some changes to account for the new Index Tuple storage in ITensor #76

Closed mtfishman closed 3 years ago

mtfishman commented 3 years ago

This PR accompanies https://github.com/ITensor/ITensors.jl/pull/626. It makes some small adjustments accounting for the change to using an Index Tuple storage in the ITensor type, as well as some other miscellaneous changes.

The most significant design change is making it so that calls like Tensor(Dense(randn(4)), (2, 2)) now return a Tensor that stores a view of the tensor storage instead of making a copy. This effectively would deprecate tensor.