VF_ceiltoI | VD_ceiltoI | VE_ceiltoI |
VF_ceiltoBI | VD_ceiltoBI | VE_ceiltoBI |
VF_ceiltoSI | VD_ceiltoSI | VE_ceiltoSI |
VF_ceiltoLI | VD_ceiltoLI | VE_ceiltoLI |
VF_ceiltoQI | VD_ceiltoQI | VE_ceiltoQI |
VF_ceiltoU | VD_ceiltoU | VE_ceiltoU |
VF_ceiltoUB | VD_ceiltoUB | VE_ceiltoUB |
VF_ceiltoUS | VD_ceiltoUS | VE_ceiltoUS |
VF_ceiltoUL | VD_ceiltoUL | VE_ceiltoUL |
VF_ceiltoUQ | VD_ceiltoUQ | VE_ceiltoUQ |
VF_ceiltoUI | VD_ceiltoUI | VE_ceiltoUI |
|
Function | Rounding to the next whole number that is greater or equal. |
|
Syntax C/C++ | #include <VFmath.h>
int VF_ceil( fVector Y, fVector X, ui size );
int VF_ceiltoI( iVector Y, fVector X, ui size );
int VF_ceiltoLI( liVector Y, fVector X, ui size );
(similarly all other functions of this family) |
C++ VecObj | #include <OptiVec.h>
int vector<T>::ceil( const vector<T>& X );
int vector<int>::ceiltoI( const vector<T>& X );
int vector<long>::ceiltoLI( const vector<T>& X ); |
Pascal/Delphi | uses VFmath;
function VF_ceil( Y, X:fVector; size:UIntSize ): IntBool;
function VF_ceiltoI( Y:iVector; X:fVector; size:UIntSize ): IntBool;
function VF_ceiltoLI( Y:liVector; X:fVector; size:UIntSize ): IntBool;
(similarly all other functions of this family) |
|
CUDA function C/C++ | #include <cudaVFmath.h>
int cudaVF_ceil( fVector d_Y, fVector d_X, ui size );
int cudaVF_ceiltoI( iVector d_Y, fVector d_X, ui size );
int VFcu_ceil( fVector h_Y, fVector h_X, ui size );
int VFcu_ceiltoI( iVector h_Y, fVector h_X, ui size );
|
CUDA function Pascal/Delphi | uses VFmath;
function cudaVF_ceil( d_Y, d_X:fVector; size:UIntSize ): IntBool;
function cudaVF_ceiltoI( d_Y:iVector; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_ceil( h_Y, h_X:fVector; size:UIntSize ): IntBool;
function VFcu_ceiltoI( h_Y:iVector; h_X:fVector; size:UIntSize ): IntBool;
|
|
Description | Each element of X is rounded to the nearest whole number that is greater than or equal to the input number and the result stored in Y. The functions VF_ceiltoI, VF_ceiltoLI, VF_ceiltoU etc. convert the result into the various integer data types (in the cases mentioned, to int, long int, and unsigned, resp.). |
|
Error handling | OVERFLOW errors are handled by setting the result to the extreme value possible. Negative numbers in the versions VF_ceiltoU, VF_ceiltoUS, VF_ceiltoUL, and VF_ceiltoUI 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). |
|
|