VF_cmpCVD_cmpCVE_cmpC
FunctionCompares each element of a vector with a constant.
Syntax C/C++#include <VFmath.h>
void VF_cmpC( fVector Y, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
void vector<T>::cmpC( const vector<T>& X, const T& C );
Pascal/Delphiuses VFstd;
procedure VF_cmpC( Y,X:fVector; size:UIntSize; C:Single );
DescriptionEach element of X is compared with C and the result of the comparison stored in Y:
Yi = +1.0, if Xi > C
Yi =   0.0, if Xi = C
Yi =  -1.0, if Xi < C
To compare with C=0, use more efficiently the function VF_cmp0.
Error handlingnone
Return valuenone
See alsoVF_cmp_...,  VF_cmp0,   VF_cmpV,   VF_iselementC

VectorLib Table of Contents  OptiVec home