Commit f32e189
Loosen
## Summary
Drop the `where V` constraint on `linkdim(::AbstractITensorNetwork{V},
::AbstractEdge{V})`. The previous form required the network's
vertex-type parameter and the edge's vertex-type parameter to bind to
the same `V`, which fails when the network's `V` is abstract and the
edge's `V` is a concrete subtype (e.g. an `ITensorNetwork{Any}` paired
with a `NamedEdge{Int}`). `linkinds` itself accepts the edge in that
case, so the constraint was just blocking dispatch unnecessarily.
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>linkdim(::AbstractITensorNetwork, ::AbstractEdge) signature (#373)1 parent c0cb74d commit f32e189
2 files changed
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
556 | 556 | | |
557 | 557 | | |
558 | 558 | | |
559 | | - | |
| 559 | + | |
560 | 560 | | |
561 | 561 | | |
562 | 562 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
250 | 250 | | |
251 | 251 | | |
252 | 252 | | |
| 253 | + | |
| 254 | + | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
| 261 | + | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
253 | 265 | | |
0 commit comments