| VF_iselementV | VD_iselementV | VE_iselementV |
| VCF_iselementV | VCD_iselementV | VCE_iselementV |
| VPF_iselementV | VPD_iselementV | VPE_iselementV |
| VI_iselementV | VBI_iselementV | VSI_iselementV | VLI_iselementV | VQI_iselementV |
| VU_iselementV | VUB_iselementV | VUS_iselementV | VUL_iselementV | VUI_iselementV |
|
| Function | Test for each element of a vector, if an identical element is present in a table. |
|
| Syntax C/C++ | #include <VFstd.h>
ui VF_iselementV( fVector Y, fVector X, ui sizex, fVector Tab, ui sizetab ); |
| C++ VecObj | #include <OptiVec.h>
ui vector<T>::iselementV( const vector<T>& X, const vector<T>& Tab ); |
| Pascal/Delphi | uses VFstd;
function VF_iselementV( Y, X:fVector; sizex:UIntSize; Tab:fVector; sizetab:UIntSize ):UIntSize; |
|
| Description | The table Tab is searched for each of the elements of X. For those elements of X which are found in Tab, the corresponding element of Y is set to +1 (in the complex versions: {1, 0} ). No ordering of X and Tab is assumed and a linear search for each Xi performed. A related function that finds the table element closest (but not necessarily equal) to each element of X is VF_searchV. |
|
|
| Return value | The number of elements of X for which an element of Tab was found is returned. |
|
|