addVf(3)

NAME
addVf, subtractVf, scaleVf, combineVf, normVf, dotVf -- single precision vector arithmetic.

USAGE
#include <vector.h>

float *addVf (vr, v1, v2, size)
   float *vr, *v1, *v2;
   int size;

float *subtractVf (vr, v1, v2, size)
   float *vr, *v1, *v2;
   int size;

float *scaleVf (vr, a, v1, size)
   float *vr, *v1;
   float a;
   int size;

float *combineVf (vr, a, v1, b, v2, size)
   float *vr, *v1, *v2;
   float a, b;
   int size;

float normVf (v1, size)
   float *v1;
   int size;

float dotVf (v1, v2, size)
   float *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 single precision vector arithemtic and return a pointer to their result argument.

addVf() and subtractVf() compute vr = v1 + v2 and vr = v1 - v2, respectively.

scaleVf() computes the vector vr = a v1.

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

normVf() computes the 2-norm of v1.

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

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