Repository navigation
Commit bebe0d6
Recouple complex data with real coefficients in a real gemm on all storage
Reinterpreting GPU storage as real yields native GPU arrays, such that the
real and imaginary parts of complex data can be recoupled with real
coefficients in a single `mul!`, which dispatches to the vendor BLAS. This
adds a generic `_recouple!` method for complex `DenseVector` buffers with a
real recoupling matrix, keeping the direct `BLAS.gemm!` call only for CPU
storage, where views of reinterpreted arrays are not `StridedMatrix`. The
CPU rule of `recoupling_scalartype`, keeping real coefficients real, is now
used for all storage.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>1 parent 4a0e238 commit bebe0d6
2 files changed
Lines changed: 13 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
744 | 744 | | |
745 | 745 | | |
746 | 746 | | |
747 | | - | |
748 | | - | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
| 754 | + | |
| 755 | + | |
749 | 756 | | |
750 | 757 | | |
751 | 758 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | | - | |
27 | | - | |
28 | | - | |
29 | | - | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
30 | 29 | | |
31 | | - | |
32 | | - | |
33 | | - | |
34 | | - | |
35 | | - | |
36 | 30 | | |
37 | 31 | | |
38 | 32 | | |
39 | | - | |
| 33 | + | |
40 | 34 | | |
41 | 35 | | |
42 | 36 | | |
| |||
0 commit comments