PTEMS  0.1.0-dev+git.50fd239
PolyTopic Element Method Solver
ptems::FuncGradAndHessianData< DIM, X > Struct Template Reference

Structure holding the values of a function, its gradient, and its Hessian at a point. More...

#include <ptems/spaces/polynomials.hpp>

Inheritance diagram for ptems::FuncGradAndHessianData< DIM, X >:
Collaboration diagram for ptems::FuncGradAndHessianData< DIM, X >:

Public Member Functions

 FuncGradAndHessianData ()
 Creates structure containing empty (zero) values of a function, its gradient, and its Hessian at a point. More...
 
 FuncGradAndHessianData (X func, const BasicVector< X, DIM > &grad, const BasicMatrix< X, DIM > &hessian)
 Creates structure containing values of a function, its gradient, and its Hessian at a point. More...
 

Public Attributes

BasicMatrix< X, DIM > Hessian
 The Hessian of the function. More...
 
Func
 Value of the function. More...
 
BasicVector< X, DIM > Gradient
 The gradient of the function. More...
 

Detailed Description

template<std::size_t DIM, typename X>
struct ptems::FuncGradAndHessianData< DIM, X >

Structure holding the values of a function, its gradient, and its Hessian at a point.

Constructor & Destructor Documentation

◆ FuncGradAndHessianData() [1/2]

template<std::size_t DIM, typename X >
ptems::FuncGradAndHessianData< DIM, X >::FuncGradAndHessianData ( )
inline

Creates structure containing empty (zero) values of a function, its gradient, and its Hessian at a point.

◆ FuncGradAndHessianData() [2/2]

template<std::size_t DIM, typename X >
ptems::FuncGradAndHessianData< DIM, X >::FuncGradAndHessianData ( func,
const BasicVector< X, DIM > &  grad,
const BasicMatrix< X, DIM > &  hessian 
)
inline

Creates structure containing values of a function, its gradient, and its Hessian at a point.

Parameters
funcValue of function at point
gradValue of gradient at point
hessianValue of Hessian at point

Member Data Documentation

◆ Func

template<std::size_t DIM, typename X >
X ptems::FuncAndGradData< DIM, X >::Func
inherited

Value of the function.

◆ Gradient

template<std::size_t DIM, typename X >
BasicVector<X, DIM> ptems::FuncAndGradData< DIM, X >::Gradient
inherited

The gradient of the function.

◆ Hessian

template<std::size_t DIM, typename X >
BasicMatrix<X, DIM> ptems::FuncGradAndHessianData< DIM, X >::Hessian

The Hessian of the function.


The documentation for this struct was generated from the following file: