
#include <mvec.h> void vmod (int n, double *restrict z, int incz, const double *restrict x, int incx, const double *restrict y, int incy); void vmodf(int n, float *restrict z, int incz, const float *restrict x, int incx, const float *restrict y, int incy); #include <mvec64.h> void vmod_64 (long n, double *restrict z, long incz, const double *restrict x, long incx, const double *restrict y, long incy); void vmodf_64(long n, float *restrict z, long incz, const float *restrict x, long incx, const float *restrict y, long incy);
Given an input vectors
and
as well as a result vector
, this function computes:

ENTRY: Number of elements of
,
and
.
CONSTRAINT:
.
EXIT: Result vector
.
CONSTRAINT: Must contain
elements.
CONSTRAINT: Must not overlap with array
or
.
ENTRY: Stride for the vector
.
CONSTRAINT:
.
BEHAVIOR: A negative stride will traverse the array in reverse.
ENTRY: Input vector
.
CONSTRAINT: Must contain
elements.
CONSTRAINT: Must not overlap with array
or
.
ENTRY: Stride for the vector
.
CONSTRAINT:
.
BEHAVIOR: A negative stride will traverse the array in reverse.
ENTRY: Input vector
.
CONSTRAINT: Must contain
elements.
CONSTRAINT: Must not overlap with array
or
.
ENTRY: Stride for the vector
.
CONSTRAINT:
.
BEHAVIOR: A negative stride will traverse the array in reverse.