VF_iselementC | VD_iselementC | VE_iselementC |
VCF_iselementC | VCD_iselementC | VCE_iselementC |
VPF_iselementC | VPD_iselementC | VPE_iselementC |
VI_iselementC | VBI_iselementC | VSI_iselementC | VLI_iselementC | VQI_iselementC | |
VU_iselementC | VUB_iselementC | VUS_iselementC | VUL_iselementC | VUQ_iselementC | VUI_iselementC |
|
Function | Test 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/Delphi | uses 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/Delphi | uses 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;
|
|
Description | The 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. |
|
|
Return value | TRUE (+1), if C is an element of X, otherwise FALSE (0). |
|
|