27#include "neml2/models/Model.h"
42 void set_value(
bool out,
bool dout_din,
bool d2out_din2)
override;
51 std::vector<const Variable<T> *>
_from;
std::vector< const Scalar * > _coefs
Scaling coefficient for each term.
Definition LinearCombination.h:54
LinearCombination(const OptionSet &options)
Variable< T > & _to
Sum of all the input variables.
Definition LinearCombination.h:45
std::vector< const Variable< T > * > _from
The input variables (to be summed).
Definition LinearCombination.h:51
static OptionSet expected_options()
const Scalar * _s
Constant offset coefficient.
Definition LinearCombination.h:48
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Model(const OptionSet &options)
Construct a new Model object.
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:52
Scalar.
Definition Scalar.h:38
Concrete definition of a variable.
Definition Variable.h:37
Definition DiagnosticsInterface.h:31