27#include "neml2/models/Model.h"
28#include "neml2/tensors/macros.h"
53#define COPYVARIABLE_TYPEDEF_PRIMITIVETENSOR(T) typedef CopyVariable<T> Copy##T
54FOR_ALL_PRIMITIVETENSOR(COPYVARIABLE_TYPEDEF_PRIMITIVETENSOR);
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:56
The base class for all constitutive models.
Definition Model.h:55
const torch::TensorOptions & options() const
Storage tensor options.
Definition Model.h:111
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:100
Definition CrossRef.cxx:30