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 |
|
Funktion | Test, ob alle Elemente identisch sind |
|
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-Funktion C/C++ | #include <cudaVFstd.h>
int cudaVF_isconst( int *h_isConst, fVector d_X, ui size );
int VFcu_isconst( fVector X, ui size );
|
CUDA-Funktion 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;
|
|
Beschreibung | Die Funktionen dieser Familie geben TRUE (1) zurück, wenn alle Elemente des Vektors X identisch sind, andernfalls FALSE (0). Dabei werden +0 und −0 als verschieden behandelt, ebenso wie die unterschiedlichen Typen von NAN. |
|
|
Rückgabewert | TRUE (1) oder FALSE (0) |
|
|