1CLASSQ(1)           LAPACK auxiliary routine (version 3.1)           CLASSQ(1)
2
3
4

NAME

6       CLASSQ  - the values scl and ssq such that   ( scl**2 )*ssq = x( 1 )**2
7       +...+ x( n )**2 + ( scale**2 )*sumsq,
8

SYNOPSIS

10       SUBROUTINE CLASSQ( N, X, INCX, SCALE, SUMSQ )
11
12           INTEGER        INCX, N
13
14           REAL           SCALE, SUMSQ
15
16           COMPLEX        X( * )
17

PURPOSE

19       CLASSQ returns the values scl and ssq such that
20
21       where x( i ) = abs( X( 1 + ( i - 1 )*INCX ) ). The value  of  sumsq  is
22       assumed to be at least unity and the value of ssq will then satisfy
23
24          1.0 .le. ssq .le. ( sumsq + 2*n ).
25
26       scale is assumed to be non-negative and scl returns the value
27
28          scl = max( scale, abs( real( x( i ) ) ), abs( aimag( x( i ) ) ) ),
29                 i
30
31       scale  and  sumsq  must  be  supplied  in SCALE and SUMSQ respectively.
32       SCALE and SUMSQ are overwritten by scl and ssq respectively.
33
34       The routine makes only one pass through the vector X.
35
36

ARGUMENTS

38       N       (input) INTEGER
39               The number of elements to be used from the vector X.
40
41       X       (input) COMPLEX array, dimension (N)
42               The vector x as described above.  x( i )  = X( 1  +  (  i  -  1
43               )*INCX ), 1 <= i <= n.
44
45       INCX    (input) INTEGER
46               The  increment between successive values of the vector X.  INCX
47               > 0.
48
49       SCALE   (input/output) REAL
50               On entry, the value  scale  in the equation  above.   On  exit,
51               SCALE is overwritten with the value  scl .
52
53       SUMSQ   (input/output) REAL
54               On  entry,  the  value  sumsq  in the equation above.  On exit,
55               SUMSQ is overwritten with the value  ssq .
56
57
58
59 LAPACK auxiliary routine (versionNo3v.e1m)ber 2006                       CLASSQ(1)
Impressum