Commit f732824
committed
Replace
`Base.conj` is the standard name for the bra-side involution (data
conj + per-axis arrow flip, no transpose) across the symmetric-tensor
ecosystem (TeNPy, YASTN, symmray, Google TensorNetwork). It also lets
graded matrices inherit `m'` and `m' * m` for free via Julia's
standard `AbstractMatrix` machinery (`Base.adjoint = conj ∘ transpose`).
Drops the local `dag(x) = x` and `dual(x) = x` stubs in
`src/tensoralgebra.jl` and replaces calls in `similar_operator`,
`normnetwork`, and `insert_trivial_link!`. For non-graded backings
the new behavior is the standard `Base.conj` default; graded
backends will overload `Base.conj` on their array and axis types
without needing to touch INN.dag and dual stubs with Base.conj
1 parent 14ac593 commit f732824
3 files changed
Lines changed: 9 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
187 | 187 | | |
188 | 188 | | |
189 | 189 | | |
190 | | - | |
| 190 | + | |
191 | 191 | | |
192 | 192 | | |
193 | 193 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
134 | 134 | | |
135 | 135 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
21 | 21 | | |
22 | 22 | | |
23 | 23 | | |
24 | | - | |
25 | | - | |
26 | | - | |
27 | | - | |
28 | 24 | | |
29 | | - | |
30 | | - | |
31 | | - | |
32 | | - | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
33 | 30 | | |
34 | 31 | | |
35 | | - | |
| 32 | + | |
36 | 33 | | |
37 | 34 | | |
38 | 35 | | |
39 | | - | |
| 36 | + | |
40 | 37 | | |
41 | 38 | | |
42 | 39 | | |
| |||
0 commit comments