| VF_subV_chiabs | VD_subV_chiabs | VE_subV_chiabs |   
 | 
| Function | Subtract two vectors and calculate the chiabs merit function |  
  | 
| Syntax C/C++ | #include <VFmath.h>
 float VF_subV_chiabs( fVector Z, fVector X, fVector Y, uifVector Wt,  size ); |  
| C++ VecObj | #include <OptiVec.h>
 T vector<T>::subV_chiabs( const vector<T>& X, const vector<T>& Y, const vector<T>& Wt ); |  
| Pascal/Delphi | uses VFmath;
 function VF_subV_chiabs( Z, X, Y, Wt:fVector; size:UIntSize ): Single; |  
  | 
| CUDA function C/C++ | #include <cudaVFmath.h>
 int cudaVF_subV_chiabs( float *h_RetVal, fVector d_Z, fVector d_X, fVector d_Y, fVector d_Wt, ui size );
 int cusdVF_subV_chiabs( float *d_RetVal, fVector d_Z, fVector d_X, fVector d_Y, fVector d_Wt, ui size );
 float VFcu_subV_chiabs( fVector h_Z, fVector h_X, fVector h_Y, fVector h_Wt, ui size );
 |  
| CUDA function Pascal/Delphi | uses VFmath;
 function cudaVF_subV_chiabs( var h_RetVal:Single; d_Z, d_X, d_Y, d_Wt:fVector; size:UIntSize ): IntBool;
 function cusdVF_subV_chiabs( d_RetVal:PSingle; d_Z, d_X, d_Y, d_Wt:fVector; size:UIntSize ): IntBool;
 |  
  | 
| Description | Zi = Xi - Yi
 chiabs = Sum(| Zi | * Wti )
This function saturates infinities into HUGE_VAL and treats input values of ±NAN as ±HUGE_VAL. The reasoning behind this is that V?_subV_chiabs finds its main use inside nonlinear fitting routines. If the fitting routine tries a bad parameter set, you want it to get the feedback that the guess was far off; you do not want it to be punished by an exception or programme crash.
  |  
  | 
 | 
| Return value | chiabs merit function of the difference of the two vectors |  
  | 
 |