VF_maxreldevC | VD_maxreldevC | VE_maxreldevC |
|
Function | Find the largest deviation between the elements of a vector and a reference value. |
|
Syntax C/C++ | #include <VFstd.h>
float VF_maxreldevC( fVector X, ui size, float C ); |
C++ VecObj | #include <OptiVec.h>
T vector<T>::maxreldevC(const T& C); |
Pascal/Delphi | uses VFstd;
function VF_maxreldevC( X:fVector; size:UIntSize; C:Single ): Single; |
|
CUDA function C/C++ | #include <cudaVFstd.h>
int cudaVF_maxreldevC( float *h_RetVal, fVector d_X, ui size, float C );
int cusdVF_maxreldevC( float *d_RetVal, fVector d_X, ui size, float *d_C );
float VFcu_maxreldevC( fVector h_X, ui size, float C );
|
CUDA function Pascal/Delphi | uses VFstd;
function cudaVF_maxreldevC( var h_RetVal:Single; d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_maxreldevC( d_RetVal:PSingle; d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_maxreldevC( h_X:fVector; size:UIntSize; C:Single ): Single;
|
|
Description | The relative deviation (in absolute terms) of each element of a vector X from a reference value C is calculated as
reldev = |Xi − C| / |C|
and the largest reldev encountered is returned.
The reference value C=0 is not allowed, as it would lead to a division by zero. |
|
|
Return value | maximum relative deviation encountered. |
|
|