LAPACK 3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
cladiv.f
Go to the documentation of this file.
1*> \brief \b CLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.
2*
3* =========== DOCUMENTATION ===========
4*
5* Online html documentation available at
6* http://www.netlib.org/lapack/explore-html/
7*
8*> Download CLADIV + dependencies
9*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cladiv.f">
10*> [TGZ]</a>
11*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cladiv.f">
12*> [ZIP]</a>
13*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cladiv.f">
14*> [TXT]</a>
15*
16* Definition:
17* ===========
18*
19* COMPLEX FUNCTION CLADIV( X, Y )
20*
21* .. Scalar Arguments ..
22* COMPLEX X, Y
23* ..
24*
25*
26*> \par Purpose:
27* =============
28*>
29*> \verbatim
30*>
31*> CLADIV := X / Y, where X and Y are complex. The computation of X / Y
32*> will not overflow on an intermediary step unless the results
33*> overflows.
34*> \endverbatim
35*
36* Arguments:
37* ==========
38*
39*> \param[in] X
40*> \verbatim
41*> X is COMPLEX
42*> \endverbatim
43*>
44*> \param[in] Y
45*> \verbatim
46*> Y is COMPLEX
47*> The complex scalars X and Y.
48*> \endverbatim
49*
50* Authors:
51* ========
52*
53*> \author Univ. of Tennessee
54*> \author Univ. of California Berkeley
55*> \author Univ. of Colorado Denver
56*> \author NAG Ltd.
57*
58*> \ingroup ladiv
59*
60* =====================================================================
61 COMPLEX FUNCTION cladiv( X, Y )
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*
92 END
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