VMS Help
RTL Routines, MTH$, BLAS1$VxASUM
*Conan The Librarian (sorry for the slow response - running on an old VAX)
|
|
The Obtain the Sum of the Absolute Values of the Elements of a
Vector routine determines the sum of the absolute values of the
elements of the n-element vector x.
Format
BLAS1$VSASUM n ,x ,incx
BLAS1$VDASUM n ,x ,incx
BLAS1$VGASUM n ,x ,incx
BLAS1$VSCASUM n ,x ,incx
BLAS1$VDZASUM n ,x ,incx
BLAS1$VGWASUM n ,x ,incx
Use BLAS1$VSASUM for single-precision real operations.
Use BLAS1$VDASUM for double-precision real (D-floating)
operations.
Use BLAS1$VGASUM for double-precision real (G-floating)
operations.
Use BLAS1$VSCASUM for single-precision complex operations.
Use BLAS1$VDZASUM for double-precision complex (D-floating)
operations.
Use BLAS1$VGWASUM for double-precision complex (G-floating)
operations.
OpenVMS usage:floating_point
type: F_floating, D_floating, or G_floating real
access: write only
mechanism: by value
The function value, called sum, is the sum of the absolute values
of the elements of the vector x. The data type of the function
value is a real number; for the BLAS1$VSCASUM, BLAS1$VDZASUM,
and BLAS1$VGWASUM routines, the data type of the function value
is the real data type corresponding to the complex argument data
type.
n
OpenVMS usage:longword_signed
type: longword integer (signed)
access: read only
mechanism: by reference
Number of elements in vector x to be added. The n argument is
the address of a signed longword integer containing the number of
elements.
x
OpenVMS usage:floating_point or complex_number
type: F_floating, D_floating, G_floating real or
F_floating, D_floating, G_floating complex
access: read only
mechanism: by reference, array reference
Array containing the elements to be accessed. All elements of
array x are accessed only if the increment argument of x, called
incx, is 1. The x argument is the address of a floating-point or
floating-point complex number that is this array. This argument
is an array of length at least:
1+(n-1)*|incx|
where:
n = number of vector elements specified in n
incx= increment argument for the array x specified in incx
Specify the data type as follows:
Routine Data Type for x
BLAS1$VSASUM F-floating real
BLAS1$VDASUM D-floating real
BLAS1$VGASUM G-floating real
BLAS1$VSCASUM F-floating complex
BLAS1$VDZASUM D-floating complex
BLAS1$VGWASUM G-floating complex
If n is less than or equal to 0, then sum is 0.0.
incx
OpenVMS usage:longword_signed
type: longword integer (signed)
access: read only
mechanism: by reference
Increment argument for the array x. The incx argument is the
address of a signed longword integer containing the increment
argument. If incx is greater than or equal to 0, then x is
referenced forward in array x; that is, xi is referenced in:
x(1+(i-1)*incx)
where:
x = array specified in x
i = element of the vector x
incx= increment argument for the array x specified in incx
If you specify a negative value for incx, it is interpreted as
the absolute value of incx.
[legal]
[privacy]
[GNU]
[policy]
[netiquette]
[sponsors]
[FAQ]
Polarhome, production since 1999.
Member of Polarhome portal.