VF_ceilVD_ceilVE_ceil
VF_ceiltoIVD_ceiltoIVE_ceiltoI
VF_ceiltoBIVD_ceiltoBIVE_ceiltoBI
VF_ceiltoSIVD_ceiltoSIVE_ceiltoSI
VF_ceiltoLIVD_ceiltoLIVE_ceiltoLI
VF_ceiltoQIVD_ceiltoQIVE_ceiltoQI
VF_ceiltoUVD_ceiltoUVE_ceiltoU
VF_ceiltoUBVD_ceiltoUBVE_ceiltoUB
VF_ceiltoUSVD_ceiltoUSVE_ceiltoUS
VF_ceiltoULVD_ceiltoULVE_ceiltoUL
VF_ceiltoUQVD_ceiltoUQVE_ceiltoUQ
VF_ceiltoUIVD_ceiltoUIVE_ceiltoUI
FunctionRounding 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/Delphiuses 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/Delphiuses 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;
DescriptionEach 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 handlingOVERFLOW 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 valueFALSE (0), if no error occurred, otherwise TRUE (non-zero).
See alsoVF_round,   VF_floor,   VF_chop,   VF_trunc,   ceil,   floor (C/C++ only)

VectorLib Table of Contents  OptiVec home