VF_maxindreldevCVD_maxindreldevCVE_maxindreldevC
FunctionMaximum relative deviation from a reference and its index.
Syntax C/C++#include <VFstd.h>
float VF_maxindreldevC( ui *Ind, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
T vector<T>::maxindreldevC( ui *Ind, const T& C );
Pascal/Delphiuses VFstd;
function VF_maxindreldevC( var Ind:UIntSize; X:fVector; size:UIntSize; C:Single ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_maxindreldevC( float *h_RetVal, ui *h_Ind, fVector d_X, ui size, float C );
int cusdVF_maxindreldevC( float *d_RetVal, ui *h_Ind, fVector d_X, ui size, float *d_C );
float VFcu_maxindreldevC( ui *Ind, fVector h_X, ui size, float C );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_maxindreldevC( var h_RetVal:Single; var h_Ind:UIntSize; d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_maxindreldevC( d_RetVal:PSingle; var h_Ind:UIntSize; d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_maxindreldevC( var Ind:UIntSize; h_X:fVector; size:UIntSize; C:Single ): Single;
DescriptionmaxreldevC = max( |Xi - C|  /  |C| ).
The maximum relative deviation encountered is returned and its index i stored at the address given by the argument Ind.
A reference value C of zero is not allowed, as it would lead to a divion by zero.
Error handlingnone
Return valuemaximum relative deviation.
See alsoVF_maxinddevC,   VF_maxindreldevV,   VF_maxdevC,   VF_sumdevC,   VF_avdevC

VectorLib Table of Contents  OptiVec home