PTEMS  0.1.0-dev+git.47ec727
PolyTopic Element Method Solver
ptems::FuncFourthOrderData< DIM, X > Struct Template Reference

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

#include <ptems/spaces/polynomials.hpp>

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

Public Member Functions

 FuncFourthOrderData ()
 Creates structure containing empty (zero) values of a function and its gradient, Hessian, third order, and fourth order derivatives at a point. More...
 
 FuncFourthOrderData (X func, const BasicVector< X, DIM > &grad, const BasicMatrix< X, DIM > &hessian, const BasicTensor< X, 3, DIM > &thirdOrder, const BasicTensor< X, 4, DIM > &fourthOrder)
 Creates structure containing values of a function, and its gradient, Hessian, third order, and fourth order derivatives at a point. More...
 

Public Attributes

BasicTensor< X, 4, DIM > FourthOrder
 The fourth order derivatives of the function as a rank 4 tensor. More...
 
BasicTensor< X, 3, DIM > ThirdOrder
 The third order derivatives of the function as a rank 3 tensor. More...
 
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::FuncFourthOrderData< DIM, X >

Structure holding the values of a function and its gradient, Hessian, third order, and fourth order derivatives at a point.

Constructor & Destructor Documentation

◆ FuncFourthOrderData() [1/2]

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

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

◆ FuncFourthOrderData() [2/2]

template<std::size_t DIM, typename X >
ptems::FuncFourthOrderData< DIM, X >::FuncFourthOrderData ( func,
const BasicVector< X, DIM > &  grad,
const BasicMatrix< X, DIM > &  hessian,
const BasicTensor< X, 3, DIM > &  thirdOrder,
const BasicTensor< X, 4, DIM > &  fourthOrder 
)
inline

Creates structure containing values of a function, and its gradient, Hessian, third order, and fourth order derivatives at a point.

Parameters
funcValue of function at point
gradValue of gradient at point
hessianValue of Hessian at point
thirdOrderValue of third order derivatives at point
fourthOrderValue of third order derivatives at point

Member Data Documentation

◆ FourthOrder

template<std::size_t DIM, typename X >
BasicTensor<X, 4, DIM> ptems::FuncFourthOrderData< DIM, X >::FourthOrder

The fourth order derivatives of the function as a rank 4 tensor.

The first dimension of the tensor is the first derivative, the second the second derivative etc.

◆ 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
inherited

The Hessian of the function.

◆ ThirdOrder

template<std::size_t DIM, typename X >
BasicTensor<X, 3, DIM> ptems::FuncThirdOrderData< DIM, X >::ThirdOrder
inherited

The third order derivatives of the function as a rank 3 tensor.

The first dimension of the tensor is the first derivative, the second the second derivative etc.


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