ITensor / NDTensors.jl

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

Introduce AliasStyle to help with functions that have different aliasing behaviors #79

Closed mtfishman closed 3 years ago

mtfishman commented 3 years ago

This introduces AliasStyle with subtypes AllowAlias and NeverAlias, which helps distinguish between different versions of functions like conj or Tensor which may return copies or aliases of the input.