VEC_$IZERO16 Domain/OS VEC_$IZERO16
NAME
vec_$izero16 - zero a 16-bit integer vector
SYNOPSIS (C)
#include <apollo/base.h>
#include <apollo/vec.h>
void vec_$izero16(
short *vector,
long int &length)
SYNOPSIS (Pascal)
%include '/sys/ins/base.ins.pas';
%include '/sys/ins/vec.ins.pas';
procedure vec_$izero16(
var vector: univ vec_$integer16_vector;
in length: integer32);
SYNOPSIS (FORTRAN)
%include '/sys/ins/base.ins.ftn'
%include '/sys/ins/vec.ins.ftn'
parameter (nvec = 10)
integer*2 vector(nvec)
integer*4 length
call vec_$izero16(vector, length)
DESCRIPTION
Vec_$izero16 zeros the first length elements of the 16-bit integer vector
vector.
In C, the resulting operation is
for (i = 0; i < length; ++i)
vector[i] = 0;
In Pascal, the resulting operation is
for i := 1 to length do
vector[i] := 0;
In FORTRAN, the resulting operation is
do 10 i = 1, length
vec(i) = 0
10 continue
vector
The vector to be zeroed.
length
The number of elements in vector to zero.
NOTES
In C and Pascal, vec_$izero16 zeros row vectors; whereas in FORTRAN, it
zeros column vectors.
SEE ALSO
vec_$dzero, vec_$izero, vec_$izero16_i, vec_$zero.