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:56
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
const torch::TensorOptions & options() const
Storage tensor options.
Definition Model.h:111
The base class for nonlinear parameters.
Definition NonlinearParameter.h:50
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:100
LabeledAxisAccessor & set_input(const std::string &)
Definition OptionSet.cxx:74
const std::string & doc() const
A readonly reference to the option set's docstring.
Definition OptionSet.h:132
T & set(const std::string &)
Definition OptionSet.h:518
The (logical) scalar.
Definition Scalar.h:38
std::string demangle(const char *name)
Demangle a piece of cxx abi type information.
Definition utils.cxx:33
Definition CrossRef.cxx:30