VF_reldiffVVD_reldiffVVE_reldiffV
FunctionRelative Deviation (with correct sign) of the elements of one vector from the corresponding elements of another vector, normalized by the larger of the two input values
Syntax C/C++#include <VFmath.h>
void VF_reldiffV( fVector Z, fVector X, fVector Y, ui size );
C++ VecObj#include <OptiVec.h>
void vector<T>::reldiffV( const vector<T>& X, const vector<T>& Y );
Pascal/Delphiuses VFmath;
procedure VF_reldiffV( Z, X, Y:fVector; size:UIntSize );
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_reldiffV( fVector d_Z, fVector d_X, fVector d_Y,ui size );
void VFcu_reldiffV( fVector h_Z, fVector h_X, fVector h_Y,ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_reldiffV( d_Z, d_X, d_Y:fVector; size:UIntSize ): IntBool;
procedure VFcu_reldiffV( h_Z, h_X, h_Y:fVector; size:UIntSize );
DescriptionZi = (Xi − Yi)  /  max(|Xi|, |Yi|),   if |Xi| > 0 or |Yi| > 0
Zi = 0,   if Xi = 0 and Yi = 0

While VF_reldiffV yields the signed relative diffiation (negative for Xi < Yi, the similar function VF_reldevV gives the absolute value of the relative deviation.

Error handlingnone
Return valuenone
See alsoVF_reldevV,   VF_reldiffC,   VF_maxreldiffV,   VF_maxindreldiffV

VectorLib Table of Contents  OptiVec home