27#include "neml2/models/NonlinearParameter.h"
76 " as a function of the given argument. See neml2::Interpolation for rules on "
77 "shapes of the interpolant and the argument.";
80 options.
set(
"argument").doc() =
"Argument used to query the interpolant";
83 options.
set(
"abscissa").doc() =
"Scalar defining the abscissa values of the interpolant";
86 options.
set(
"ordinate").doc() =
tensor_type +
" defining the ordinate values of the interpolant";
95 _Y(
this->
template declare_parameter<T>(
"Y",
"ordinate")),
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
The base class for interpolated nonlinear parameter.
Definition Interpolation.h:49
const Scalar & _X
The abscissa values of the interpolant.
Definition Interpolation.h:57
const Variable< Scalar > & _x
Argument of interpolation.
Definition Interpolation.h:63
const T & _Y
The ordinate values of the interpolant.
Definition Interpolation.h:60
static OptionSet expected_options()
Definition Interpolation.h:68
Interpolation(const OptionSet &options)
Definition Interpolation.h:92
The accessor containing all the information needed to access an item in a LabeledAxis.
Definition LabeledAxisAccessor.h:44
const torch::TensorOptions & options() const
This model's tensor options.
Definition Model.h:116
The base class for nonlinear parameters.
Definition NonlinearParameter.h:51
static OptionSet expected_options()
Definition NonlinearParameter.cxx:31
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:59
const std::string & doc() const
A readonly reference to the option set's docstring.
Definition OptionSet.h:91
T & set(const std::string &)
Definition OptionSet.h:436
The (logical) scalar.
Definition Scalar.h:38
std::string demangle(const char *name)
Definition parser_utils.cxx:46
Definition CrossRef.cxx:32