gmsh-TingyuanDoc  0.1
An Open-Source Timing-driven Analytical Mixed-size FPGA Placer
simpleFunction< scalar > Class Template Reference

#include <GModel.h>

Inheritance diagram for simpleFunction< scalar >:

Public Member Functions

 simpleFunction (scalar val=0.0)
 
virtual ~simpleFunction ()
 
virtual bool hasDerivatives ()
 
virtual scalar operator() (double x, double y, double z) const
 
virtual void setElement (MElement *e) const
 
virtual void gradient (double x, double y, double z, scalar &dfdx, scalar &dfdy, scalar &dfdz) const
 
virtual void hessian (double x, double y, double z, scalar &dfdxx, scalar &dfdxy, scalar &dfdxz, scalar &dfdyx, scalar &dfdyy, scalar &dfdyz, scalar &dfdzx, scalar &dfdzy, scalar &dfdzz) const
 

Protected Attributes

scalar _val
 
bool _hasDerivatives
 

Detailed Description

template<class scalar>
class simpleFunction< scalar >

Definition at line 30 of file GModel.h.

Constructor & Destructor Documentation

◆ simpleFunction()

template<class scalar >
simpleFunction< scalar >::simpleFunction ( scalar  val = 0.0)
inline

Definition at line 20 of file simpleFunction.h.

◆ ~simpleFunction()

template<class scalar >
virtual simpleFunction< scalar >::~simpleFunction ( )
inlinevirtual

Definition at line 21 of file simpleFunction.h.

Member Function Documentation

◆ gradient()

template<class scalar >
virtual void simpleFunction< scalar >::gradient ( double  x,
double  y,
double  z,
scalar &  dfdx,
scalar &  dfdy,
scalar &  dfdz 
) const
inlinevirtual

◆ hasDerivatives()

template<class scalar >
virtual bool simpleFunction< scalar >::hasDerivatives ( )
inlinevirtual

Definition at line 22 of file simpleFunction.h.

Referenced by meshMetric::addMetric(), and meshMetric::operator()().

Here is the caller graph for this function:

◆ hessian()

template<class scalar >
virtual void simpleFunction< scalar >::hessian ( double  x,
double  y,
double  z,
scalar &  dfdxx,
scalar &  dfdxy,
scalar &  dfdxz,
scalar &  dfdyx,
scalar &  dfdyy,
scalar &  dfdyz,
scalar &  dfdzx,
scalar &  dfdzy,
scalar &  dfdzz 
) const
inlinevirtual

◆ operator()()

◆ setElement()

template<class scalar >
virtual void simpleFunction< scalar >::setElement ( MElement e) const
inlinevirtual

Member Data Documentation

◆ _hasDerivatives

template<class scalar >
bool simpleFunction< scalar >::_hasDerivatives
protected

Definition at line 17 of file simpleFunction.h.

Referenced by simpleFunction< SVector3 >::hasDerivatives().

◆ _val

template<class scalar >
scalar simpleFunction< scalar >::_val
protected

Definition at line 16 of file simpleFunction.h.

Referenced by simpleFunction< SVector3 >::operator()().


The documentation for this class was generated from the following files: