VEC_$IASUM_I Domain/OS VEC_$IASUM_I
NAME
vec_$iasum_i - sum the absolute value of the elements of a 32-bit integer
vector
SYNOPSIS (C)
#include <apollo/base.h>
#include <apollo/vec.h>
long int vec_$iasum_i(
long int *vector,
long int &vec_inc,
long int &length)
SYNOPSIS (Pascal)
%include '/sys/ins/base.ins.pas';
%include '/sys/ins/vec.ins.pas';
function vec_$iasum_i(
in vector: univ vec_$integer32_vector;
in vec_inc: integer32;
in length: integer32): integer32;
SYNOPSIS (FORTRAN)
%include '/sys/ins/base.ins.ftn'
%include '/sys/ins/vec.ins.ftn'
parameter (nvec = 10)
integer*4 vector(nvec), sum
integer*4 length, vec_inc
sum = vec_$iasum_i(vector, vec_inc, length)
DESCRIPTION
Vec_$iasum_i adds together the absolute value of length elements of the
32-bit integer array vector and returns the sum.
This call, like all vec_$ calls ending in _i, takes a set of extra stride
arguments, one for every vector argument. The stride arguments determine
which elements in the array are actually processed. For instance, if the
stride for a particular array is set to 3, every third element in the
array will be processed by the routine. The stride arguments need not be
identical. If all stride arguments are set to 1, this call behaves
exactly like the version without the _i in its name.
vector
The vector to be summed.
vec_inc
The stride for vector.
length
The number of elements to be operated on; normally the same as the
number of elements in the vector.
NOTES
When vec_$iasum_i is used to operate on matrixes in C and Pascal, vector
is a row vector; in FORTRAN, it is a column vector.
SEE ALSO
vec_$sum, vec_$norm, vec_$dot, vec_$asum_i, vec_$dasum, vec_$dasum_i,
vec_$asum, vec_$iasum_i, vec_$iasum16, vec_$iasum16_i.