VF_floortoI | VD_floortoI | VE_floortoI |
VF_floortoBI | VD_floortoBI | VE_floortoBI |
VF_floortoSI | VD_floortoSI | VE_floortoSI |
VF_floortoLI | VD_floortoLI | VE_floortoLI |
VF_floortoQI | VD_floortoQI | VE_floortoQI |
VF_floortoU | VD_floortoU | VE_floortoU |
VF_floortoUB | VD_floortoUB | VE_floortoUB |
VF_floortoUS | VD_floortoUS | VE_floortoUS |
VF_floortoUL | VD_floortoUL | VE_floortoUL |
VF_floortoUQ | VD_floortoUQ | VE_floortoUQ |
VF_floortoUI | VD_floortoUI | VE_floortoUI |
|
Function | Rounding towards minus infinity |
|
Syntax C/C++ | #include <VFmath.h>
int VF_floor( fVector Y, fVector X, ui size );
int VF_floortoI( iVector Y, fVector X, ui size );
int VF_floortoLI( liVector Y, fVector X, ui size );
int VF_floortoU( uVector Y, fVector X, ui size );
(similarly all others) |
C++ VecObj | #include <OptiVec.h>
int vector<T>::floor( const vector<T>& X );
int vector<int>::floortoI( const vector<T>& X );
int vector<long>::floortoLI( const vector<T>& X );
int vector<unsigned>::floortoU( const vector<T>& X ); |
Pascal/Delphi | uses VFmath;
function VF_floor( Y, X:fVector; size:UIntSize ): IntBool;
function VF_floortoI( Y:iVector; X:fVector; size:UIntSize ): IntBool;
function VF_floortoLI( Y:liVector; X:fVector; size:UIntSize ): IntBool;
(similarly all others) |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_floor( fVector d_Y, fVector d_X, ui size );
int cudaVF_floortoI( iVector d_Y, fVector d_X, ui size );
int VFcu_floor( fVector h_Y, fVector h_X, ui size );
int VFcu_floortoI( iVector h_Y, fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_floor( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVF_floortoI( d_Y:iVector; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_floor( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFcu_floortoI( h_Y:iVector; h_X:fVector; size:UIntSize ): IntBool;
|
|
Description | Each element of X is rounded to the nearest whole number that is less than or equal to the input number and the result stored in Y. The functions VF_floortoI, VF_floortoLI, VF_floortoU, etc. convert the result to the various integer data types (in the cases mentioned, to the types int, long int, or unsigned, respectively). |
|
Error handling | OVERFLOW errors are handled by setting the result to the extreme value possible. Negative numbers in the versions VF_floortoU, VF_floortoUS, VF_floortoUL, and VF_floortoUI lead to DOMAIN errors; they are handled by setting the result to 0. |
|
Return value | FALSE (0), if no error occurred, otherwise TRUE (non-zero). |
|
|