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

◆ zla_wwaddw()

subroutine zla_wwaddw ( integer n,
complex*16, dimension( * ) x,
complex*16, dimension( * ) y,
complex*16, dimension( * ) w )

ZLA_WWADDW adds a vector into a doubled-single vector.

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

Purpose:
!>
!>    ZLA_WWADDW adds a vector W into a doubled-single vector (X, Y).
!>
!>    This works for all extant IBM's hex and binary floating point
!>    arithmetic, but not for decimal.
!> 
Parameters
[in]N
!>          N is INTEGER
!>            The length of vectors X, Y, and W.
!> 
[in,out]X
!>          X is COMPLEX*16 array, dimension (N)
!>            The first part of the doubled-single accumulation vector.
!> 
[in,out]Y
!>          Y is COMPLEX*16 array, dimension (N)
!>            The second part of the doubled-single accumulation vector.
!> 
[in]W
!>          W is COMPLEX*16 array, dimension (N)
!>            The vector to be added.
!> 
Author
Univ. of Tennessee
Univ. of California Berkeley
Univ. of Colorado Denver
NAG Ltd.

Definition at line 78 of file zla_wwaddw.f.

79*
80* -- LAPACK computational routine --
81* -- LAPACK is a software package provided by Univ. of Tennessee, --
82* -- Univ. of California Berkeley, Univ. of Colorado Denver and NAG Ltd..--
83*
84* .. Scalar Arguments ..
85 INTEGER N
86* ..
87* .. Array Arguments ..
88 COMPLEX*16 X( * ), Y( * ), W( * )
89* ..
90*
91* =====================================================================
92*
93* .. Local Scalars ..
94 COMPLEX*16 S
95 INTEGER I
96* ..
97* .. Executable Statements ..
98 DO 10 i = 1, n
99 s = x(i) + w(i)
100 s = (s + s) - s
101 y(i) = ((x(i) - s) + w(i)) + y(i)
102 x(i) = s
103 10 CONTINUE
104 RETURN
105*
106* End of ZLA_WWADDW
107*
Here is the caller graph for this function: