27#include "neml2/models/Interpolation.h"
96 template <
typename T2>
101template <
typename T2>
106 const auto B =
m.batch_sizes().slice(0, -1);
108 return T2(
in.batch_expand_as(
m).index({m})).batch_reshape(
B);
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:54
The base class for interpolated nonlinear parameter.
Definition Interpolation.h:49
Linearly interpolate the parameter along a single axis.
Definition LinearInterpolation.h:76
LinearInterpolation(const OptionSet &options)
Definition LinearInterpolation.cxx:44
static OptionSet expected_options()
Definition LinearInterpolation.cxx:36
void set_value(bool out, bool dout_din, bool d2out_din2) override
The map between input -> output, and optionally its derivatives.
Definition LinearInterpolation.cxx:51
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:85
Scalar.
Definition Scalar.h:38
Definition CrossRef.cxx:31
LinearInterpolation< Scalar > ScalarLinearInterpolation
Definition LinearInterpolation.h:111
LinearInterpolation< SR2 > SR2LinearInterpolation
Definition LinearInterpolation.h:113
LinearInterpolation< Vec > VecLinearInterpolation
Definition LinearInterpolation.h:112