#include <mvec.h> void vtrunc (int n, double *restrict y, int incy, const double *restrict x, int incx); void vtruncf(int n, float *restrict y, int incy, const float *restrict x, int incx); void vtrunc_64 (long n, double *restrict y, long incy, const double *restrict x, long incx); void vtruncf_64(long n, float *restrict y, long incy, const float *restrict x, long incx);
Given an input vector and a result vector
this function truncates the elements of
to the nearest integral part lower or equal
than
and stores the result in
.
ENTRY: Number of elements of and
.
CONSTRAINT: .
EXIT: Result vector .
CONSTRAINT: Must contain elements.
CONSTRAINT: Must not overlap with array .
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 .
ENTRY: Stride for the vector .
CONSTRAINT: .
BEHAVIOR: A negative stride will traverse the array in reverse.