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. 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