| VF_maxindreldevC | VD_maxindreldevC | VE_maxindreldevC |  
  | 
| Function | Maximum 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/Delphi | uses 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/Delphi | uses 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;
 |  
  | 
| Description | maxreldevC = 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. |  
  | 
 | 
| Return value | maximum relative deviation. |  
  | 
 |