Repository navigation
Commit bb637c8
Normalize
`mul!(tC, tA, tB, α, β)` forwarded `VectorInterface.One`/`Zero` verbatim
to LinearAlgebra's block `mul!`. Ordinary GEMM tolerates this, but a
contraction of a tensor with its own adjoint dispatches to the HERK path,
where `herk_wrapper!` calls `isreal` on the scalars and throws a
`MethodError`. Map them to `true`/`false` first, which LinearAlgebra still
recognizes as exact one and zero.
Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>One/Zero scalars before BLAS in mul!
1 parent 4494902 commit bb637c8
1 file changed
Lines changed: 7 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
326 | 326 | | |
327 | 327 | | |
328 | 328 | | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
| 334 | + | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
332 | 338 | | |
333 | 339 | | |
334 | 340 | | |
| 341 | + | |
335 | 342 | | |
336 | 343 | | |
337 | 344 | | |
| |||
0 commit comments