VF_isconstVD_isconstVE_isconst
VCF_isconstVCD_isconstVCE_isconst
VPF_isconstVPD_isconstVPE_isconst
VI_isconstVBI_isconstVSI_isconstVLI_isconstVQI_isconst 
VU_isconstVUB_isconstVUS_isconstVUL_isconstVUQ_isconstVUI_isconst
FunctionConsistency check: test if all elements of a vector are identical
Syntax C/C++#include <VFstd.h>
int VF_isconst( fVector X, ui size );
C++ VecObj#include <OptiVec.h>
int vector<T>::isconst();
Pascal/Delphiuses VFstd;
function VF_isconst( X:fVector; size:UIntSize ): IntBool;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_isconst( int *h_isConst, fVector d_X, ui size );
int VFcu_isconst( fVector X, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_isconst( var h_isConst:Integer; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_isconst( h_X:fVector; size:UIntSize ): IntBool;
DescriptionThe vector X is analyzed. If all elements are identical, TRUE (1) is returned, otherwise FALSE (0). In order to be identical, the bit representation of all elements must be the same. Thus, +0 and −0 are treated as being different from each other. The same holds for the various types of NAN.
Error handlingnone
Return valueTRUE (1) or FALSE (0)
See alsoVF_cmp_equC,   VF_ismonoton

VectorLib Table of Contents  OptiVec home