Revision 1060 trunk/src/linad99/newfmin.cpp
newfmin.cpp (revision 1060)  

10  10 
* 
11  11 
*/ 
12  12 
/** 
13 
* \file


14 
* Description not yet available.


13 
\file newfmin.cpp


14 
Souce code for quasiNewton function minimizer.


15  15 
*/ 
16  16  
17  17 
#include <fvar.hpp> 
...  ...  
183  183 
#endif 
184  184  
185  185 
/** 
186 
* Description not yet available. 

187 
* \param 

186 
QuasiNewton function minimizer. 

187 
\param _f Value of function to be minimized. 

188 
\param _x Vector of independent variables. 

189 
\param _g Vector containing the partial derivatives of _f with respect to 

190 
each independent variable. The gradient vector returned by \ref gradcalc. 

188  191 
*/ 
189  192 
void fmm::fmin(const double& _f, const dvector &_x, const dvector& _g) 
190  193 
{ 
...  ...  
871  874 
} 
872  875  
873  876 
/** 
874 
* dafsqrt robust square root (returns zero of argument is negative)


875 
* \param x double


876 
* \return square root of x (for x>0)


877 
Robust square root.


878 
\param x Double precision argunent \f$x; x \ge 0\f$.


879 
\return \f$\sqrt{x}\f$ for \f$x>0\f$, 0 otherwise.


877  880 
*/ 
878  881 
double dafsqrt( double x ) 
879  882 
{ 
Also available in: Unified diff