29#include "neml2/jit/types.h"
58 const std::map<std::string, std::unique_ptr<TensorValueBase>> &
named_parameters()
const
58 const std::map<std::string, std::unique_ptr<TensorValueBase>> &
named_parameters()
const {
…}
63 std::map<std::string, std::unique_ptr<TensorValueBase>> &
named_parameters();
101 template <
typename T,
typename =
typename std::enable_if_t<std::is_base_of_v<TensorBase<T>, T>>>
116 template <
typename T,
typename =
typename std::enable_if_t<std::is_base_of_v<TensorBase<T>, T>>>
119 bool allow_nonlinear);
134 template <
typename T,
typename =
typename std::enable_if_t<std::is_base_of_v<TensorBase<T>, T>>>
136 const std::string & input_option_name,
137 bool allow_nonlinear =
false);
149 std::map<std::string, std::unique_ptr<TensorValueBase>> _param_values;
The base class for all constitutive models.
Definition Model.h:97
The base class of all "manufacturable" objects in the NEML2 library.
Definition NEML2Object.h:42
ParameterStore & operator=(const ParameterStore &)=delete
void set_parameter(const std::string &, const Tensor &)
Set the value for a parameter.
Definition ParameterStore.cxx:49
jit::Stack collect_parameter_stack() const
Collect stack from parameters.
Definition ParameterStore.cxx:344
void set_parameters(const std::map< std::string, Tensor > &)
Set values for parameters.
Definition ParameterStore.cxx:65
void assign_parameter_stack(jit::Stack &stack)
Assign stack to parameters.
Definition ParameterStore.cxx:320
ParameterStore & operator=(ParameterStore &&)=delete
const std::map< std::string, std::unique_ptr< TensorValueBase > > & named_parameters() const
Definition ParameterStore.h:58
const TensorValueBase & get_parameter(const std::string &name) const
}@
Definition ParameterStore.h:67
ParameterStore(const ParameterStore &)=delete
virtual ~ParameterStore()=default
virtual void send_parameters_to(const TensorOptions &options)
Send parameters to options.
Definition ParameterStore.cxx:42
const T & declare_parameter(const std::string &name, const T &rawval)
Declare a parameter.
Definition ParameterStore.cxx:81
ParameterStore(Model *object)
Definition ParameterStore.cxx:36
ParameterStore(ParameterStore &&)=delete
NEML2's enhanced tensor type.
Definition TensorBase.h:49
The base class to allow us to set up a polymorphic container of Tensors. The concrete definitions wil...
Definition TensorValue.h:39
Base class of variable.
Definition Variable.h:52
Definition DiagnosticsInterface.cxx:30
std::string name(ElasticConstant p)
Definition ElasticityConverter.cxx:30
c10::TensorOptions TensorOptions
Definition types.h:63
The name of a tensor object that can be referenced in the input files.
Definition TensorName.h:46