dualfroz 351ba05ff4 fix(bignum): ComplexMultiplier.Quo wrong result and panic for real / non-real
The a-real / b-non-real branch of Quo divided the real numerator by each
component of b independently, which is not complex division: (1+0i)/(1+i)
returned 1+1i instead of 0.5-0.5i, (1+0i)/i returned +Inf+1i, and (0+0i)/i
divided 0/0 and panicked. Use the full a*conj(b)/|b|^2 formula (the same
one the general branch uses), which reduces correctly when a is real.

Closes #577
2026-09-02 05:04:22 +02:00
S
Description
My contributions to tuneinsight/lattigo: 2 commits
32 KiB
0 Stars 1 Watchers 0 Forks
Languages
Go 100%