-
Notifications
You must be signed in to change notification settings - Fork 7
Try to simplify the overload requirements for inds #21
Comments
Agreed, yes. Then I guess one immediate advantage is that something like a Vector{Index} or a Vector{MyType} where MyType is some type from an external library could work as the indices of a Tensor? (Btw I kept wanting to call it an “NDTensor” when writing the paper.) |
Yeah, though it wouldn't be a good idea to use I guess "NDTensor" could be used interchangeably with "NDTensors", like we will use "ITensor" interchangeably with "ITensors". In retrospect we could have called the package "NDTensor", since it doesn't clash with any actual type names in the package, but it just seemed natural to have the symmetry with "ITensors". |
That’s interesting about sticking just to NTuple. It makes a lot of sense if the code is having to do contortions to be overly generic. Actually, I didn’t mean about renaming the package to NDTensor.jl - NDTensors is a good name -just I kept thinking the actual type is called NDTensor (so like T = NDTensor(3,4)). |
Ah I see. It might not be a bad idea for a name, since |
We should reevaluate the interface requirements for the
inds
object of theTensor
type, and try to make it as simple as possible. For example, if we assume theinds
object is indexable (which is true forDims
andIndexSet
) then it should just require having the elements ofinds
have adim
orblockdim
overload, instead of requiringinds
itself to have adim
orblockdim
overload.The text was updated successfully, but these errors were encountered: