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:469
#define CODI_INLINE_NO_FA
See codi::Config::ForcedInlines.
Definition config.h:471
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:96
CoDiPack - Code Differentiation Package.
Definition codi.hpp:94
V constructVector(size_t const size)
Helper for the construction of vector types provided by the user.
Definition constructVector.hpp:83
inlinevoid CODI_UNUSED(Args const &...)
Disable unused warnings for an arbitrary number of arguments.
Definition macros.hpp:54
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
inlineDummyValue operator()(size_t const i, size_t const j, size_t const k) const
Value access.
Definition hessian.hpp:130
void resize(size_t const m, size_t const n)
Resize to the new dimensions.
Definition hessian.hpp:144
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
Hessian(size_t m, size_t n)
Constructor.
Definition hessian.hpp:74
inlinesize_t getN() const
Get size of columns (input variables).
Definition hessian.hpp:82
inlineT operator()(size_t const i, size_t const j, size_t const k) const
Value access.
Definition hessian.hpp:87
T_T T
See Hessian.
Definition hessian.hpp:62
inlinevoid resize(size_t const m, size_t const n)
Resize to the new dimensions.
Definition hessian.hpp:97
size_t n
Definition hessian.hpp:69
inlineT & operator()(size_t const i, size_t const j, size_t const k)
Reference access.
Definition hessian.hpp:92
size_t m
Definition hessian.hpp:68
T_Store Store
See Hessian.
Definition hessian.hpp:63
inlinesize_t getM() const
Get size of rows (output variables).
Definition hessian.hpp:77
inlinesize_t size() const
Get total size of the Hessian.
Definition hessian.hpp:105
Store values
Definition hessian.hpp:66
static Dummy dummy
Dummy object.
Definition staticDummy.hpp:43