VF_cmpVVD_cmpVVE_cmpV
VI_cmpVVBI_cmpVVSI_cmpVVLI_cmpVVQI_cmpV 
VU_cmpVVUB_cmpVVUS_cmpVVUL_cmpVVUQ_cmpVVUI_cmpV
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 );
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_cmpV( fVector d_Z, fVector d_X, fVector d_Y, ui size );
void VFcu_cmpV( fVector h_Z, fVector h_X, fVector h_Y, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_cmpV( d_Z, d_X, d_Y:fVector; size:UIntSize ): IntBool;
procedure VFcu_cmpV( h_Z, h_X, h_Y:fVector; 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