FunctionSplit up the elements of a vector into their integer and fractional parts.
Syntax C/C++#include <VFmath.h>
int VF_intfrac( fVector IntPart, fVector FracPart, fVector X, ui size );
C++ VecObj#include <OptiVec.h>
int vector<T>::intfrac( vector<T> FracPart, const vector<T>& X );
Pascal/Delphiuses VFmath;
function VF_intfrac( IntPart, FracPart, X:fVector; size:UIntSize ): IntBool;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_intfrac( fVector d_IntPart, fVector d_FracPart, fVector d_X, ui size );
int VFcu_intfrac( fVector h_IntPart, fVector h_FracPart, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_intfrac( d_IntPart, d_FracPart, d_X:fVector; size:UIntSize ): IntBool;
function VFcu_intfrac( h_IntPart, h_FracPart, h_X:fVector; size:UIntSize ): IntBool;
DescriptionThe integer parts of the elements of X are stored in IntPart, the fractional parts in FracPart. Notice that IntPart is a floating-point vector, even though it contains integer numbers (which might be larger than could be stored in the integer data types).
Error handlingnone
Return valuealways FALSE (0)
See alsoVF_mantexp,  modf (C/C++ only)

VectorLib Table of Contents  OptiVec home