LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches

◆ cladiv()

complex function cladiv ( complex x,
complex y )

CLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.

Download CLADIV + dependencies [TGZ] [ZIP] [TXT]

Purpose:
!>
!> CLADIV := X / Y, where X and Y are complex.  The computation of X / Y
!> will not overflow on an intermediary step unless the results
!> overflows.
!> 
Parameters
[in]X
!>          X is COMPLEX
!> 
[in]Y
!>          Y is COMPLEX
!>          The complex scalars X and Y.
!> 
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 61 of file cladiv.f.

62*
63* -- LAPACK auxiliary routine --
64* -- LAPACK is a software package provided by Univ. of Tennessee, --
65* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
66*
67* .. Scalar Arguments ..
68 COMPLEX X, Y
69* ..
70*
71* =====================================================================
72*
73* .. Local Scalars ..
74 REAL ZI, ZR
75* ..
76* .. External Subroutines ..
77 EXTERNAL sladiv
78* ..
79* .. Intrinsic Functions ..
80 INTRINSIC aimag, cmplx, real
81* ..
82* .. Executable Statements ..
83*
84 CALL sladiv( real( x ), aimag( x ), real( y ), aimag( y ), zr,
85 $ zi )
86 cladiv = cmplx( zr, zi )
87*
88 RETURN
89*
90* End of CLADIV
91*
complex function cladiv(x, y)
CLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.
Definition cladiv.f:62
subroutine sladiv(a, b, c, d, p, q)
SLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.
Definition sladiv.f:89
Here is the call graph for this function:
Here is the caller graph for this function: