copyV(3)

NAME
copyVf, copyVd, copyVdf, copyVfd, zeroVf, zeroVd -- routines for copying and zeroing vectors.

USAGE
#include <vector.h>

float *copyVf (vr, v1, size)
   float *vr, *v1;
   int size;

double *copyVd (vr, v1, size)
   double *vr, *v1;
   int size;

float *copyVdf (vr, v1, size)
   float *vr;
   double *v1;
   int size;

double *copyVfd (vr, v1, size)
   double *vr;
   float *v1;
   int size;

float *zeroVf (vr, size)
   float *vr;
   int size;

double *zeroVd (vr, size)
   double *vr;
   int size;

ARGUMENTS

vr --
    Destination array.

v1 --
    Source array.

size --
    Length of the vector.

DESCRIPTION
These routines provide a compact way of copying or inter-converting single (float) or double precision vectors. Each function copies the vector pointed to by the second argument into the vector pointed to by the first argument, and returns a pointer to the result argument.

The zeroing functions simply write the value 0.0 into every element of the vector.

SEE ALSO
addVf(3), addVd(3), printVf(3), printVd(3).