39#include "../../traits/misc/enableIfHelpers.hpp"
53 template<
typename T_T>
68 void resize(
size_t const m,
size_t const n);
72 void setLogic(
size_t const i,
size_t const j,
T const& v);
83 template<
typename Stream,
typename Jac,
typename = enable_if_base_of<Jac, JacobianInterface<
typename Jac::T>>>
86 for (
size_t i = 0; i < jacobian.
getM(); ++i) {
91 for (
size_t j = 0; j < jacobian.
getN(); ++j) {
95 out << jacobian(i, j);
98 if (i + 1 < jacobian.
getM()) {
#define CODI_DD(Type, Default)
Abbreviation for CODI_DECLARE_DEFAULT.
Definition macros.hpp:94
#define CODI_T(...)
Abbreviation for CODI_TEMPLATE.
Definition macros.hpp:111
CoDiPack - Code Differentiation Package.
Definition codi.hpp:90
ExpressionTraits::EnableIfExpression< Expr, std::ostream > & operator<<(std::ostream &out, Expr const &v)
Write the primal value to the stream.
Definition expressionInterface.hpp:129
General interface for Jacobian access in CoDiPack.
Definition jacobianInterface.hpp:54
T operator()(size_t const i, size_t const j) const
Value access, i in [0, ..., m), j in [0, ..., n).
void resize(size_t const m, size_t const n)
Resize the Jacobian.
size_t getM() const
Get size of rows (output variables).
void setLogic(size_t const i, size_t const j, T const &v)
Interface for the JacobianDelayAccessor.
T & operator()(size_t const i, size_t const j)
Reference access, i in [0, ..., m), j in [0, ..., n).
size_t size() const
Get total size of the Jacobian.
size_t getN() const
Get size of columns (input variables).
T_T T
See JacobianInterface.
Definition jacobianInterface.hpp:57