VF_iselementCVD_iselementCVE_iselementC
VCF_iselementCVCD_iselementCVCE_iselementC
VPF_iselementCVPD_iselementCVPE_iselementC
VI_iselementCVBI_iselementCVSI_iselementCVLI_iselementCVQI_iselementC 
VU_iselementCVUB_iselementCVUS_iselementCVUL_iselementCVUQ_iselementCVUI_iselementC
FunctionTest if one or more elements of a table are equal to C.
Syntax C/C++#include <VFstd.h>
int VF_iselementC( fVector Tab, ui size, float C );
C++ VecObj#include <OptiVec.h>
int vector<T>::iselementC( const T& C );
Pascal/Delphiuses VFstd;
function VF_iselementC( Tab:fVector; size:UIntSize; C:Single ): IntBool;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_iselementC( fVector d_Tab, ui size, float C );
int cusdVF_iselementC( fVector d_Tab, ui size, float *d_C );
int VFcu_iselementC( fVector h_Tab, ui size, float C );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_iselementC( d_Tab:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_iselementC( d_Tab:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_iselementC( h_Tab:fVector; size:UIntSize; C:Single ): IntBool;
DescriptionThe vector Tab is searched for the value C. If one or more elements are equal to C, TRUE (+1) is returned, otherwise FALSE (0). No ordering of Tab is assumed and a linear search performed. In contrast to the comparison and counting functions, VF_cmp_eqC, VF_cnt_eqC, +0.0 and –0.0 are treated as different numbers here, as this functions searches for the exact bit-representation given by C.
A related function that finds the table element closest (but not necessarily equal) to C is VF_searchC.
Error handlingnone
Return valueTRUE (+1), if C is an element of X, otherwise FALSE (0).
See alsoVF_searchC,   VF_iselementV,   lfind,   lsearch

VectorLib Table of Contents  OptiVec home