1 *> \brief \b ZLADIV performs complex division in real arithmetic, avoiding unnecessary overflow.
3 * =========== DOCUMENTATION ===========
5 * Online html documentation available at
6 * http://www.netlib.org/lapack/explore-html/
9 *> Download ZLADIV + dependencies
10 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/zladiv.f">
12 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/zladiv.f">
14 *> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/zladiv.f">
21 * COMPLEX*16 FUNCTION ZLADIV( X, Y )
23 * .. Scalar Arguments ..
33 *> ZLADIV := X / Y, where X and Y are complex. The computation of X / Y
34 *> will not overflow on an intermediary step unless the results
49 *> The complex scalars X and Y.
55 *> \author Univ. of Tennessee
56 *> \author Univ. of California Berkeley
57 *> \author Univ. of Colorado Denver
60 *> \date September 2012
62 *> \ingroup complex16OTHERauxiliary
64 * =====================================================================
65 COMPLEX*16 FUNCTION ZLADIV( X, Y )
67 * -- LAPACK auxiliary routine (version 3.4.2) --
68 * -- LAPACK is a software package provided by Univ. of Tennessee, --
69 * -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
72 * .. Scalar Arguments ..
76 * =====================================================================
79 DOUBLE PRECISION ZI, ZR
81 * .. External Subroutines ..
84 * .. Intrinsic Functions ..
85 INTRINSIC DBLE, DCMPLX, DIMAG
87 * .. Executable Statements ..
89 CALL DLADIV( DBLE( X ), DIMAG( X ), DBLE( Y ), DIMAG( Y ), ZR,
91 ZLADIV = DCMPLX( ZR, ZI )