-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
in src/utils.jl we have some type piracy
ITensorNumericalAnalysis.jl/src/utils.jl
Lines 50 to 67 in e508b66
| function ITensors.inds(s::IndsNetwork, v) | |
| return s[v] | |
| end | |
| function ITensors.inds(s::IndsNetwork, verts::Vector) | |
| return reduce(vcat, [inds(s, v) for v in verts]) | |
| end | |
| function ITensors.inds(s::IndsNetwork) | |
| return inds(s, collect(vertices(s))) | |
| end | |
| function base(s::IndsNetwork) | |
| indices = inds(s) | |
| dims = dim.(indices) | |
| @assert all(d -> d == first(dims), dims) | |
| return first(dims) | |
| end |
We should probably remove these and also be more careful, thinking toward multiple base within the index maps
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels