FunctionMaximum absolute deviation from a reference and its index.
Syntax C/C++#include <VFstd.h>
float VF_maxinddevC( ui *Ind, fVector X, ui size, float C );
C++ VecObj#include <OptiVec.h>
T vector<T>::maxinddevC( ui *Ind, const T& C );
Pascal/Delphiuses VFstd;
function VF_maxinddevC( var Ind:UIntSize; X:fVector; size:UIntSize; C:Single ): Single;
CUDA function C/C++#include <cudaVFstd.h>
int cudaVF_maxinddevC( float *h_RetVal, ui *h_Ind, fVector d_X, ui size, float C );
int cusdVF_maxinddevC( float *d_RetVal, ui *h_Ind, fVector d_X, ui size, float *d_C );
float VFcu_maxinddevC( ui *Ind, fVector h_X, ui size, float C );
CUDA function Pascal/Delphiuses VFstd;
function cudaVF_maxinddevC( var h_RetVal:Single; var h_Ind:UIntSize; d_X:fVector; size:UIntSize; C:Single ): IntBool;
function cusdVF_maxinddevC( d_RetVal:PSingle; var h_Ind:UIntSize; d_X:fVector; size:UIntSize; d_C:PSingle ): IntBool;
function VFcu_maxinddevC( var Ind:UIntSize; h_X:fVector; size:UIntSize; C:Single ): Single;
DescriptionmaxdevC = max( |Xi - C| ).
The maximum deviation encountered is returned and its index i stored at the address given by the argument Ind.
Error handlingnone
Return valuemaximum absolute deviation.
See alsoVF_maxindreldevC,   VF_maxinddevV,   VF_maxdevC,   VF_sumdevC,   VF_avdevC

VectorLib Table of Contents  OptiVec home