Commit 4e7465f
refactor: build
`map_diagonal(f, src)` is exactly `diagonal(f.(diagview(src)))`, so the
three `copy_input` methods can use it instead of constructing a `Diagonal`
directly. This keeps them consistent with the rest of the package, which
routes diagonal construction through `diagonal` rather than the
`LinearAlgebra` type.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>Diagonal copies via map_diagonal
1 parent 1d5d8be commit 4e7465f
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3 | 3 | | |
4 | 4 | | |
5 | 5 | | |
6 | | - | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
0 commit comments