VF_isconst | VD_isconst | VE_isconst |
VCF_isconst | VCD_isconst | VCE_isconst |
VPF_isconst | VPD_isconst | VPE_isconst |
VI_isconst | VBI_isconst | VSI_isconst | VLI_isconst | VQI_isconst | |
VU_isconst | VUB_isconst | VUS_isconst | VUL_isconst | VUQ_isconst | VUI_isconst |
|
Function | Consistency 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/Delphi | uses 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/Delphi | uses VFstd;
function cudaVF_isconst( var h_isConst:Integer; d_X:fVector; size:UIntSize ): IntBool;
function VFcu_isconst( h_X:fVector; size:UIntSize ): IntBool;
|
|
Description | The 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. |
|
|
Return value | TRUE (1) or FALSE (0) |
|
|
VectorLib Table of Contents OptiVec home