exciting-0.9.218
[exciting.git] / src / LAPACK / zladiv.f
blob4a12055ebfb656c69f8726f06f8a243c3ff5c30d
1 COMPLEX*16 FUNCTION ZLADIV( X, Y )
3 * -- LAPACK auxiliary routine (version 3.1) --
4 * Univ. of Tennessee, Univ. of California Berkeley and NAG Ltd..
5 * November 2006
7 * .. Scalar Arguments ..
8 COMPLEX*16 X, Y
9 * ..
11 * Purpose
12 * =======
14 * ZLADIV := X / Y, where X and Y are complex. The computation of X / Y
15 * will not overflow on an intermediary step unless the results
16 * overflows.
18 * Arguments
19 * =========
21 * X (input) COMPLEX*16
22 * Y (input) COMPLEX*16
23 * The complex scalars X and Y.
25 * =====================================================================
27 * .. Local Scalars ..
28 DOUBLE PRECISION ZI, ZR
29 * ..
30 * .. External Subroutines ..
31 EXTERNAL DLADIV
32 * ..
33 * .. Intrinsic Functions ..
34 INTRINSIC DBLE, DCMPLX, DIMAG
35 * ..
36 * .. Executable Statements ..
38 CALL DLADIV( DBLE( X ), DIMAG( X ), DBLE( Y ), DIMAG( Y ), ZR,
39 $ ZI )
40 ZLADIV = DCMPLX( ZR, ZI )
42 RETURN
44 * End of ZLADIV
46 END