addVd(3)

NAME
addVd, subtractVd, scaleVd, combineVd, normVd, dotVd -- double precision vector arithmetic.

USAGE
#include <vector.h>

double *addVd (vr, v1, v2, size)
   double *vr, *v1, *v2;
   int size;

double *subtractVd (vr, v1, v2, size)
   double *vr, *v1, *v2;
   int size;

double *scaleVd (vr, a, v1, size)
   double *vr, *v1;
   double a;
   int size;

double *combineVd (vr, a, v1, b, v2, size)
   double *vr, *v1, *v2;
   double a, b;
   int size;

double normVd (v1, size)
   double *v1;
   int size;

double dotVd (v1, v2, size)
   double *v1, *v2;
   int size;

ARGUMENTS

vr --
    Result vector.

v1 --
    First argument vector.

v2 --
    Second argument vector.

a, b --
    Scale factors.

size --
    Size of the vector.

DESCRIPTION
These routines perform double precision vector arithemtic and return a pointer to their result argument.

addVd() and subtractVd() compute vr = v1 + v2 and vr = v1 - v2, respectively.

scaleVd() computes the vector vr = a v1.

combineVd() computes the linear combination vr = a v1 + b v2.

normVd() computes the 2-norm of v1.

dotVd() computes the dot product of v1 and v2.

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