|
| Function | Compares 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/Delphi | uses VFstd;
procedure VF_cmpC( Y,X:fVector; size:UIntSize; C:Single ); |
|
| Description | Each 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. |
|
|
|
|