VF_subV_chiabsVD_subV_chiabsVE_subV_chiabs
FunctionSubtract 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/Delphiuses 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/Delphiuses 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;
DescriptionZi = 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.

Error handlingnone
Return valuechiabs merit function of the difference of the two vectors
See alsoVF_subV,   VF_chiabs,   VF_subV_ssq,   VF_subV_chi2,   chapter 13 of http://www.optivec.com/matfuncs/

VectorLib Table of Contents  OptiVec home