40#include "../../misc/constructVector.hpp"
42#include "hessianInterface.hpp"
43#include "staticDummy.hpp"
58 template<
typename T_T,
typename T_Store = std::vector<T_T>>
88 return values.data()[computeIndex(i, j, k)];
93 return values.data()[computeIndex(i, j, k)];
110 CODI_INLINE size_t computeIndex(
size_t const i,
size_t const j,
size_t const k)
const {
111 return k *
n *
m + i *
n + j;
144 void resize(
size_t const m,
size_t const n) {
#define CODI_INLINE
See codi::Config::ForcedInlines.
Definition config.h:457
#define CODI_INLINE_NO_FA
See codi::Config::ForcedInlines.
Definition config.h:459
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
void CODI_UNUSED(Args const &...)
Disable unused warnings for an arbitrary number of arguments.
Definition macros.hpp:46
V constructVector(size_t const size)
Helper for the construction of vector types provided by the user.
Definition constructVector.hpp:83
Dummy Hessian. Has size zero and no logic in any call.
Definition hessian.hpp:116
DummyValue & operator()(size_t const i, size_t const j, size_t const k)
Reference access.
Definition hessian.hpp:137
size_t getN() const
Get size of columns (input variables).
Definition hessian.hpp:125
void resize(size_t const m, size_t const n)
Resize to the new dimensions.
Definition hessian.hpp:144
DummyValue operator()(size_t const i, size_t const j, size_t const k) const
Value access.
Definition hessian.hpp:130
size_t getM() const
Get size of rows (output variables).
Definition hessian.hpp:120
size_t size() const
Get total size of the Hessian.
Definition hessian.hpp:149
Dummy value that can be assigned.
Definition dummy.hpp:43
General interface for Hessian access in CoDiPack.
Definition hessianInterface.hpp:64
Default implementation of the Hessian interface.
Definition hessian.hpp:59
Hessian(size_t m, size_t n)
Constructor.
Definition hessian.hpp:74
T_T T
See Hessian.
Definition hessian.hpp:62
size_t getN() const
Get size of columns (input variables).
Definition hessian.hpp:82
size_t n
Number of function inputs.
Definition hessian.hpp:69
size_t m
Number of function outputs.
Definition hessian.hpp:68
T operator()(size_t const i, size_t const j, size_t const k) const
Value access.
Definition hessian.hpp:87
void resize(size_t const m, size_t const n)
Resize to the new dimensions.
Definition hessian.hpp:97
T_Store Store
See Hessian.
Definition hessian.hpp:63
size_t getM() const
Get size of rows (output variables).
Definition hessian.hpp:77
Store values
Storage for the data.
Definition hessian.hpp:66
size_t size() const
Get total size of the Hessian.
Definition hessian.hpp:105
T & operator()(size_t const i, size_t const j, size_t const k)
Reference access.
Definition hessian.hpp:92
Static dummy objects for e.g. default reference arguments.
Definition staticDummy.hpp:42