Repository navigation
Commit eb3b342
fix: Julia 1.13 compatibility (#76)
* fix: canonical ordering for `sectors(::SumSpace)`
`_sectors` returned `values(::Set)`, i.e. hash iteration order, which changed
in Julia 1.13 and broke the two `sectors(V)` assertions in the SumSpace tests
(they had codified 1.12's order). The order also leaks into fusion tree
enumeration via `map(sectors, P)`, making the layout within a block depend on
the Julia version.
Sort the result instead, consistent with `sectors(::GradedSpace)` (sorted by
construction) and `blocksectors(::ProductSpace)` (ends with `sort!`), and
assert the invariant with `issorted` rather than a hardcoded permutation.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
* fix: normalize `One`/`Zero` scalars before `LinearAlgebra`
`mul!` accumulates block contributions with `β = One()`, which reaches
`LinearAlgebra` untouched. On Julia 1.13 the HERK path calls `isreal(β)`, which
`VectorInterface.One` does not implement, so `w' * w` errors. Map `One`/`Zero`
to `true`/`false` at that hand-off; the latter is exactly the strong zero
`LinearAlgebra` documents, so the semantics are unchanged. The generic
`_mul!!` fallbacks keep the `One`/`Zero` types for VectorInterface's promotion.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5 (1M context) <noreply@anthropic.com>1 parent 95d776a commit eb3b342
3 files changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
132 | | - | |
| 132 | + | |
133 | 133 | | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
134 | 140 | | |
135 | 141 | | |
136 | 142 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
128 | 128 | | |
129 | 129 | | |
130 | 130 | | |
131 | | - | |
| 131 | + | |
132 | 132 | | |
133 | | - | |
| 133 | + | |
| 134 | + | |
134 | 135 | | |
135 | 136 | | |
136 | 137 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
129 | 129 | | |
130 | 130 | | |
131 | 131 | | |
| 132 | + | |
132 | 133 | | |
133 | 134 | | |
134 | 135 | | |
| |||
188 | 189 | | |
189 | 190 | | |
190 | 191 | | |
191 | | - | |
| 192 | + | |
| 193 | + | |
192 | 194 | | |
193 | 195 | | |
194 | 196 | | |
| |||
0 commit comments