VF_cmp0VD_cmp0VE_cmp0
VI_cmp0VBI_cmp0VSI_cmp0VLI_cmp0VQI_cmp0
FunctionCompares 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/Delphiuses VFstd;
procedure VF_cmp0( Y,X:fVector; size:UIntSize );
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_cmp0( fVector d_Y, fVector d_X, ui size );
void VFcu_cmp0( fVector h_Y, fVector h_X, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_cmp0( d_Y, d_X:fVector; size:UIntSize ): IntBool;
procedure VFcu_cmp0( h_Y, h_X:fVector; size:UIntSize );
DescriptionEach 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.
Error handlingnone
Return valuenone
See alsoVF_cmp_...,   VF_cmpC,   VF_cmpV

VectorLib Table of Contents  OptiVec home