Intel® oneAPI Math Kernel Library Developer Reference - Fortran
Performs complex division in real arithmetic, avoiding unnecessary overflow.
call sladiv( a, b, c, d, p, q )
call dladiv( a, b, c, d, p, q )
res = cladiv( x, y )
res = zladiv( x, y )
The routines sladiv/dladiv perform complex division in real arithmetic as
Complex functions cladiv/zladiv compute the result as
res = x/y,
where x and y are complex. The computation of x / y will not overflow on an intermediary step unless the results overflows.
The algorithm used is due to [Baudin12].
REAL for sladiv
DOUBLE PRECISION for dladiv
The scalars a, b, c, and d in the above expression (for real flavors only).
COMPLEX for cladiv
DOUBLE COMPLEX for zladiv
The complex scalars x and y (for complex flavors only).
REAL for sladiv
DOUBLE PRECISION for dladiv
The scalars p and q in the above expression (for real flavors only).
COMPLEX for cladiv
DOUBLE COMPLEX for zladiv
Contains the result of division x / y.