-
Notifications
You must be signed in to change notification settings - Fork 62
Closed
Labels
Description
MulAdd provides a way to reduce rounding errors when adding and multiplying.
Here is the related Julia code:
muladd(z::Complex, w::Complex, x::Complex) =
Complex(muladd(real(z), real(w), real(x)) - imag(z)*imag(w), # TODO: use mulsub given #15985
muladd(real(z), imag(w), muladd(imag(z), real(w), imag(x))))