27#include "neml2/models/Model.h"
46 std::vector<const Variable<T> *>
_from;
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
The base class for all constitutive models.
Definition Model.h:53
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
std::vector< const Scalar * > _coefs
Scaling coefficient for each term.
Definition SumModel.h:49
Variable< T > & _to
Sum of all the input variables.
Definition SumModel.h:43
std::vector< const Variable< T > * > _from
The input variables (to be summed)
Definition SumModel.h:46
static OptionSet expected_options()
Definition SumModel.cxx:35
SumModel(const OptionSet &options)
Definition SumModel.cxx:59
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition SumModel.cxx:89
Definition CrossRef.cxx:32
SumModel< Scalar > ScalarSumModel
Definition SumModel.h:52
SumModel< SR2 > SR2SumModel
Definition SumModel.h:53