Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members  

guma::newton_info Class Template Reference

#include <guma_newton.h>

Inheritance diagram for guma::newton_info::

gul::pool_object List of all members.

Public Methods

 newton_info (int in_dim, T in_alf, T in_tolx)
virtual ~newton_info ()
virtual bool evaluate (const gul::Ptr< T > &dom)=0
bool calcf (const gul::Ptr< T > &dom, T *f)

Public Attributes

int dim
alf
tolx
gul::Ptr< T > fvec
gul::Ptr< gul::Ptr< T > > fjac

template<class T>
class guma::newton_info< T >


Constructor & Destructor Documentation

template<class T>
guma::newton_info< T >::newton_info int    in_dim,
  in_alf,
  in_tolx
[inline]
 

Definition at line 48 of file guma_newton.h.

References alf, dim, gul::Ptr::reserve_pool(), and tolx.

00049   {
00050     int i;
00051     
00052     dim = in_dim;
00053     alf = in_alf;
00054     tolx = in_tolx;
00055 
00056     fvec.reserve_pool(dim);
00057     fjac.reserve_pool(dim);
00058     for( i = 0; i < dim; i++ )
00059       fjac[i].reserve_pool(dim);
00060   }

template<class T>
virtual guma::newton_info< T >::~newton_info   [inline, virtual]
 

Definition at line 61 of file guma_newton.h.

00061 { }


Member Function Documentation

template<class T>
bool guma::newton_info< T >::calcf const gul::Ptr< T > &    dom,
T *    f
[inline]
 

Definition at line 73 of file guma_newton.h.

References dim, and evaluate().

00074   {
00075     T sum;
00076     int i;
00077     bool found;
00078 
00079     found = evaluate(dom);
00080 
00081     for( sum = (T)0, i = 0; i < dim; i++ )
00082       sum += fvec[i] * fvec[i];
00083     
00084     *f = (T)0.5 * sum;
00085 
00086     return found;
00087   }

template<class T>
virtual bool guma::newton_info< T >::evaluate const gul::Ptr< T > &    dom [pure virtual]
 

Referenced by calcf().


Member Data Documentation

template<class T>
T guma::newton_info::alf
 

Definition at line 42 of file guma_newton.h.

Referenced by newton_info().

template<class T>
int guma::newton_info::dim
 

Definition at line 41 of file guma_newton.h.

Referenced by calcf(), and newton_info().

template<class T>
gul::Ptr< gul::Ptr<T> > guma::newton_info::fjac
 

Definition at line 46 of file guma_newton.h.

template<class T>
gul::Ptr<T> guma::newton_info::fvec
 

Definition at line 45 of file guma_newton.h.

template<class T>
T guma::newton_info::tolx
 

Definition at line 43 of file guma_newton.h.

Referenced by newton_info().


The documentation for this class was generated from the following file:
Generated on Mon Jan 21 04:18:03 2002 for GUL 0.6 - Geometry Utility Library by doxygen1.2.13.1 written by Dimitri van Heesch, © 1997-2001