LAPACK
3.12.1
LAPACK: Linear Algebra PACKage
Loading...
Searching...
No Matches
cla_wwaddw.f
Go to the documentation of this file.
1
*> \brief \b CLA_WWADDW adds a vector into a doubled-single vector.
2
*
3
* =========== DOCUMENTATION ===========
4
*
5
* Online html documentation available at
6
* http://www.netlib.org/lapack/explore-html/
7
*
8
*> Download CLA_WWADDW + dependencies
9
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.tgz?format=tgz&filename=/lapack/lapack_routine/cla_wwaddw.f">
10
*> [TGZ]</a>
11
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.zip?format=zip&filename=/lapack/lapack_routine/cla_wwaddw.f">
12
*> [ZIP]</a>
13
*> <a href="http://www.netlib.org/cgi-bin/netlibfiles.txt?format=txt&filename=/lapack/lapack_routine/cla_wwaddw.f">
14
*> [TXT]</a>
15
*
16
* Definition:
17
* ===========
18
*
19
* SUBROUTINE CLA_WWADDW( N, X, Y, W )
20
*
21
* .. Scalar Arguments ..
22
* INTEGER N
23
* ..
24
* .. Array Arguments ..
25
* COMPLEX X( * ), Y( * ), W( * )
26
* ..
27
*
28
*
29
*> \par Purpose:
30
* =============
31
*>
32
*> \verbatim
33
*>
34
*> CLA_WWADDW adds a vector W into a doubled-single vector (X, Y).
35
*>
36
*> This works for all extant IBM's hex and binary floating point
37
*> arithmetic, but not for decimal.
38
*> \endverbatim
39
*
40
* Arguments:
41
* ==========
42
*
43
*> \param[in] N
44
*> \verbatim
45
*> N is INTEGER
46
*> The length of vectors X, Y, and W.
47
*> \endverbatim
48
*>
49
*> \param[in,out] X
50
*> \verbatim
51
*> X is COMPLEX array, dimension (N)
52
*> The first part of the doubled-single accumulation vector.
53
*> \endverbatim
54
*>
55
*> \param[in,out] Y
56
*> \verbatim
57
*> Y is COMPLEX array, dimension (N)
58
*> The second part of the doubled-single accumulation vector.
59
*> \endverbatim
60
*>
61
*> \param[in] W
62
*> \verbatim
63
*> W is COMPLEX array, dimension (N)
64
*> The vector to be added.
65
*> \endverbatim
66
*
67
* Authors:
68
* ========
69
*
70
*> \author Univ. of Tennessee
71
*> \author Univ. of California Berkeley
72
*> \author Univ. of Colorado Denver
73
*> \author NAG Ltd.
74
*
75
*> \ingroup la_wwaddw
76
*
77
* =====================================================================
78
SUBROUTINE
cla_wwaddw
( N, X, Y, W )
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
X( * ), Y( * ), W( * )
89
* ..
90
*
91
* =====================================================================
92
*
93
* .. Local Scalars ..
94
COMPLEX
S
95
INTEGER
I
96
* ..
97
* .. Executable Statements ..
98
*
99
DO
10 i = 1, n
100
s = x(i) + w(i)
101
s = (s + s) - s
102
y(i) = ((x(i) - s) + w(i)) + y(i)
103
x(i) = s
104
10
CONTINUE
105
RETURN
106
*
107
* End of CLA_WWADDW
108
*
109
END
cla_wwaddw
subroutine cla_wwaddw(n, x, y, w)
CLA_WWADDW adds a vector into a doubled-single vector.
Definition
cla_wwaddw.f:79
SRC
cla_wwaddw.f
Generated on Mon Jan 20 2025 17:18:08 for LAPACK by
1.11.0