FunctionCompares each element of a vector with the corresponding element of another vector.
Syntax C/C++#include <VFmath.h>
void VF_cmpV( fVector Z, fVector X, fVector Y, ui size );
void VI_cmpV( iVector Z, iVector X, iVector Y, ui size );
void VU_cmpV( iVector Z, uVector X, uVector Y, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::cmpV( const vector<T>& X, const vector<T>& Y );

unsigned integer types: function belongs to corresponding signed integer class:
void vector<T>::cmpV( const vector<unsigned T>& X, const vector<unsigned T>& Y );
Pascal/Delphiuses VFstd;
procedure VF_cmpV( Z, X, Y:fVector; size:UIntSize );
procedure VI_cmpV( Z, X, Y:iVector; size:UIntSize );
procedure VU_cmpV( Z:uVector; X, Y:iVector; size:UIntSize );
DescriptionEach element of X is compared with the corresponding element of Y and the result of the comparison stored in Z:
Zi = +1.0, if Xi > Yi
Zi =   0.0, if Xi = Yi
Zi =  -1.0, if Xi < Yi.
For unsigned integer input vectors, the output is of the corresponding signed data type.
Error handlingnone
Return valuenone
See alsoVF_cmp_...,  VF_cmp0,   VF_cmpC

VectorLib Table of Contents  OptiVec home