VF_truncVD_truncVE_trunc
VF_trunctoIVD_trunctoIVE_trunctoI
VF_trunctoBIVD_trunctoBIVE_trunctoBI
VF_trunctoSIVD_trunctoSIVE_trunctoSI
VF_trunctoLIVD_trunctoLIVE_trunctoLI
VF_trunctoQIVD_trunctoQIVE_trunctoQI
VF_trunctoUVD_trunctoUVE_trunctoU
VF_trunctoUBVD_trunctoUBVE_trunctoUB
VF_trunctoUSVD_trunctoUSVE_trunctoUS
VF_trunctoULVD_trunctoULVE_trunctoUL
VF_trunctoUQVD_trunctoUQVE_trunctoUQ
VF_trunctoUIVD_trunctoUIVE_trunctoUI
FunctionRounding 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/Delphiuses 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/Delphiuses 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;
DescriptionThese 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.

VectorLib Table of Contents  OptiVec home