|
| Function | Compares each element of a vector with 0 (signum function). |
|
| Syntax C/C++ | #include <VFmath.h>
void VF_cmp0( fVector Y, fVector X, ui size ); |
| C++ VecObj | #include <OptiVec.h>
void vector<T>::cmp0( const vector<T>& X ); |
| Pascal/Delphi | uses VFstd;
procedure VF_cmp0( Y,X:fVector; size:UInt ); |
|
| Description | Each element of X is compared with 0 and the result of the comparison stored in Y:
Yi = +1.0, if Xi > 0
Yi = 0.0, if Xi = 0
Yi = -1.0, if Xi < 0.
This function may also be called under its synonym VF_sgn. |
|
|
|
|