Sum of squares

 

F_SSUMSQ/F_DSUMSQ/F_CSUMSQ/F_ZSUMSQ

Input

N

Number of elements of vector x.

 

X

REAL or COMPLEX array, minimum length

 

 

(N - 1) x incx + 1.

 

INCX

Increment for the array x. A vector x having component

 

 

xi, i = 1,..., n, is stored in an array X() with increment

 

 

argument incx. If incx > 0 then xi is stored in

 

 

X (1 + (i - 1) x incx). If incx < 0 then xiis stored in

 

 

X (1 + (N - i) x incx). incx = 0 is an illegal value.

 

SSQ

REAL scalar—inputs sumsq. If sumsq < 1, an error flag

 

 

is set and passed to the error handler.

 

SCL

REAL scalar—inputs scale. If scale < 0, an error flag is

 

 

set and passed to the error handler.

Output

SSQ

REAL scalar replaces the input ssq.

 

SCL

REAL scalar replaces the input scl.

Chapter 2 Basic Vector Operations 199