General interface for Hessian access in CoDiPack. More...
#include <hessianInterface.hpp>

Public Types | |
| using | T = T_T |
| See HessianInterface. | |
Public Member Functions | |
| size_t | getM () const |
| Get size of rows (output variables). | |
| size_t | getN () const |
| Get size of columns (input variables). | |
| T & | operator() (size_t const i, size_t const j, size_t const k) |
| Reference access. | |
| T | operator() (size_t const i, size_t const j, size_t const k) const |
| Value access. | |
| void | resize (size_t const m, size_t const n) |
| Resize to the new dimensions. | |
| size_t | size () const |
| Get total size of the Hessian. | |
| virtual | ~HessianInterface () |
| Destructor. | |
General interface for Hessian access in CoDiPack.
See Mathematical naming conventions for the naming conventions.
In the access function:
| T_T | Data type. |
Helper methods which store or read data from a Hessian expect it to implement this interface.
See Mathematical naming conventions for the mathematical nomenclature of the arguments and components.
| T_T | The data type in the Hessian. |
| T & codi::HessianInterface< T_T >::operator() | ( | size_t const | i, |
| size_t const | j, | ||
| size_t const | k ) |
Reference access.
| [in] | i | Output value of the function. Range: [0, m). |
| [in] | j | Input value of the function. First derivative direction. Range: [0,n). |
| [in] | k | Input value of the function. Second derivative direction. Range: [0,n). |
| T codi::HessianInterface< T_T >::operator() | ( | size_t const | i, |
| size_t const | j, | ||
| size_t const | k ) const |
Value access.
| [in] | i | Output value of the function. Range: [0, m). |
| [in] | j | Input value of the function. First derivative direction. Range: [0,n). |
| [in] | k | Input value of the function. Second derivative direction. Range: [0,n). |