FunctionTest 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/Delphiuses VFstd;
function VF_iselementV( Y, X:fVector; sizex:UIntSize; Tab:fVector; sizetab:UIntSize ):UIntSize;
DescriptionThe 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.
Error handlingnone
Return valueThe number of elements of X for which an element of Tab was found is returned.
See alsoVF_searchV,   VF_iselementC

VectorLib Table of Contents  OptiVec home