VF_intfrac | VD_intfrac | VE_intfrac |
|
Function | Split 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | The 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). |
|
|
Return value | always FALSE (0) |
|
|