27#include "neml2/models/Model.h"
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
Definition SR2Invariant.h:32
SR2Invariant(const OptionSet &options)
Definition SR2Invariant.cxx:50
const Variable< SR2 > & _A
Input second order tensor.
Definition SR2Invariant.h:44
const std::string _type
Definition SR2Invariant.h:41
Variable< Scalar > & _invariant
Invariant of the input tensor.
Definition SR2Invariant.h:47
static OptionSet expected_options()
Definition SR2Invariant.cxx:33
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition SR2Invariant.cxx:59
Definition CrossRef.cxx:32