VF_subV_sumabsVD_subV_sumabsVE_subV_sumabs
FunctionSubtract two vectors and calculate the sumabs merit function
Syntax C/C++#include <VFmath.h>
float VF_subV_sumabs( fVector Z, fVector X, fVector Y, ui size );
C++ VecObj#include <OptiVec.h>
T vector<T>::subV_sumabs( const vector<T>& X, const vector<T>& Y );
Pascal/Delphiuses VFmath;
function VF_subV_sumabs( Z, X, Y:fVector; size:UIntSize ): Single;
CUDA function C/C++#include <cudaVFmath.h>
int cudaVF_subV_sumabs( float *h_RetVal, fVector d_Z, fVector d_X, fVector d_Y, ui size );
int cusdVF_subV_sumabs( float *d_RetVal, fVector d_Z, fVector d_X, fVector d_Y, ui size );
float VFcu_subV_sumabs( fVector h_Z, fVector h_X, fVector h_Y, ui size );
CUDA function Pascal/Delphiuses VFmath;
function cudaVF_subV_sumabs( var h_RetVal:Single; d_Z, d_X, d_Y:fVector; size:UIntSize ): IntBool;
function cusdVF_subV_sumabs( d_RetVal:PSingle; d_Z, d_X, d_Y:fVector; size:UIntSize ): IntBool;
DescriptionZi = Xi - Yi
sumabs = Sum(| Zi |)

This function saturates infinities into HUGE_VAL and treats input values of ±NAN as ±HUGE_VAL. The reasoning behind this is that V?_subV_sumabs 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 valuesumabs of the difference of the two vectors
See alsoVF_subV,   VF_sumdevV,   VF_subV_ssq,   VF_subV_chi2,   chapter 13 of http://www.optivec.com/matfuncs/

VectorLib Table of Contents  OptiVec home