VF_trunctoI | VD_trunctoI | VE_trunctoI |
VF_trunctoBI | VD_trunctoBI | VE_trunctoBI |
VF_trunctoSI | VD_trunctoSI | VE_trunctoSI |
VF_trunctoLI | VD_trunctoLI | VE_trunctoLI |
VF_trunctoQI | VD_trunctoQI | VE_trunctoQI |
VF_trunctoU | VD_trunctoU | VE_trunctoU |
VF_trunctoUB | VD_trunctoUB | VE_trunctoUB |
VF_trunctoUS | VD_trunctoUS | VE_trunctoUS |
VF_trunctoUL | VD_trunctoUL | VE_trunctoUL |
VF_trunctoUQ | VD_trunctoUQ | VE_trunctoUQ |
VF_trunctoUI | VD_trunctoUI | VE_trunctoUI |
|
Function | Rounding by "truncating" toward zero. |
|
Syntax C/C++ | #include <VFmath.h>
int VF_trunc( fVector Y, fVector X, ui size );
int VF_trunctoI( iVector Y, fVector X, ui size );
int VF_trunctoU( uVector Y, fVector X, ui size );
(similarly all other functions of this family) |
C++ VecObj | #include <OptiVec.h>
int vector<T>::trunc( const vector<T>& X );
int vector<int>::trunctoI( const vector<T>& X );
int vector<unsigned>::trunctoU( const vector<T>& X ); |
Pascal/Delphi | uses VFmath;
function VF_trunc( Y, X:fVector; size:UIntSize ): IntBool;
function VF_trunctoI( Y:iVector; X:fVector; size:UIntSize ): IntBool;
function VF_trunctoLI( Y:liVector; X:fVector; size:UIntSize ): IntBool;
(similarly all other functions of this family) |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_trunc( fVector d_Y, fVector d_X, ui size );
int cudaVF_trunctoI( iVector d_Y, fVector d_X, ui size );
int VFcu_trunc( fVector h_Y, fVector h_X, ui size );
int VFcu_trunctoI( iVector h_Y, fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_trunc( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVF_trunctoI( d_Y:iVector; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_trunc( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFcu_trunctoI( h_Y:iVector; h_X:fVector; size:UIntSize ): IntBool;
|
|
Description | These functions are identical to those of the VF_chop family. They have been defined in order to maintain consistency with the Pascal/Delphi function trunc. For details, see VF_chop. |
|