VF_maxindreldevVVD_maxindreldevVVE_maxindreldevV
FunctionMaximum absolute deviation of the elements of one vector from the corresponding elements of another and its index
Syntax C/C++#include <VFstd.h>
float VF_maxindreldevV( ui *Ind, fVector X, fVector Y, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::maxindreldevV( ui *Ind, const vector<T>& Y );
Pascal/Delphiuses VFstd;
function VF_maxindreldevV( var Ind:UIntSize; X, Y:fVector; size:UIntSize ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_maxindreldevV( float *h_RetVal, ui *h_Ind, fVector X, fVector Y, ui size );
int cusdVF_maxindreldevV( float *d_RetVal, ui *h_Ind, fVector X, fVector Y, ui size );
float VFcu_maxindreldevV( ui *h_Ind, fVector h_X, fVector h_Y, ui size );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_maxindreldevV( var h_RetVal:Single; var h_Ind:UIntSize; d_X, d_Y:fVector; size:UIntSize ): IntBool;
function cusdVF_maxindreldevV( d_RetVal:PSingle; var h_Ind:UIntSize; d_X, d_Y:fVector; size:UIntSize ): IntBool;
function VFcu_maxindreldevV( var Ind:UIntSize; h_X, h_Y:fVector; size:UIntSize ): Single;
DescriptionmaxreldevV = max( |Xi - Yi|  /  max(|Xi|, |Yi|) )
The relative deviation is defined as the difference between corresponding vector elements, normalized by the large of the two input values (all in absolute terms). The maximum relative deviation encountered is returned and its index i stored at the address given by the argument Ind.
Error handlingnone
Return valuemaximum relative deviation.
See alsoVF_maxreldevV,   VF_maxindreldevC,   VF_maxdevV,   VF_reldevV,   VF_sumdevV,   VF_avdevV,   VF_ssqdevV

VectorLib Table of Contents  OptiVec home