SASUM(3) BLAS routine of NEC Numeric Library Collection SASUM(3) NAME SASUM - BLAS level one, sums the absolute values of the elements of a real vector SYNOPSIS REAL FUNCTION SASUM ( n, x, incx ) INTEGER n, incx REAL x DESCRIPTION This routine performs the following vector operation: n SASUM <-- Sum abs(x(i)) i=1 ARGUMENTS n INTEGER. (input) Number of vector elements to be summed. x REAL. (input) Array of dimension (n-1) * abs(incx) + 1. Vector that contains elements to be summed. incx INTEGER. (input) Increment between elements of x. If incx = 0, the results will be unpredictable. RETURN VALUES SASUM REAL. (output) Sum of the absolute values of the elements of the vector x. If n <= 0, SASUM is set to 0. NOTES This routine is Level 1 Basic Linear Algebra Subprograms (Level 1 BLAS). When working backward (incx < 0), each routine starts at the end of the vector and moves backward, as follows: x(1-incx * (n-1)), x(1-incx * (n-2)), ..., x(1) BLAS routine SASUM(3)