27#include "neml2/models/Model.h"
28#include "neml2/tensors/macros.h"
53#define COPYVARIABLE_TYPEDEF_FIXEDDIMTENSOR(T) typedef CopyVariable<T> Copy##T
54FOR_ALL_FIXEDDIMTENSOR(COPYVARIABLE_TYPEDEF_FIXEDDIMTENSOR);
Copy the value of a variable into another variable.
Definition CopyVariable.h:37
const Variable< T > & _from
Souce variable.
Definition CopyVariable.h:50
Variable< T > & _to
Destination variable.
Definition CopyVariable.h:47
CopyVariable(const OptionSet &options)
Definition CopyVariable.cxx:49
static OptionSet expected_options()
Definition CopyVariable.cxx:34
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition CopyVariable.cxx:58
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 CrossRef.cxx:32