27#include "neml2/models/Model.h"
41 const auto am = T(a.batch_expand(B, I).index({m.batch_expand(B, I)}), 0);
42 I.erase(I.end() - mdim, I.end());
43 return am.batch_reshape(B, I);
The base class for interpolated variable.
Definition Interpolation.h:64
Variable< T > & _p
The interpolated value.
Definition Interpolation.h:75
const T & _Y
The ordinate values of the interpolant.
Definition Interpolation.h:72
static OptionSet expected_options()
Definition Interpolation.cxx:49
Interpolation(const OptionSet &options)
Definition Interpolation.cxx:70
The base class for all constitutive models.
Definition Model.h:70
A custom map-like data structure. The keys are strings, and the values can be nonhomogeneously typed.
Definition OptionSet.h:51
Scalar.
Definition Scalar.h:38
TensorShapeRef intmd_sizes() const
Definition TensorBaseImpl.h:217
Concrete definition of a variable.
Definition VariableStore.h:41
TensorShape broadcast_sizes(const T &... shapes)
Return the broadcast shape of all the shapes.
Definition shape_utils.h:233
TraceableTensorShape broadcast_dynamic_sizes(const std::vector< Tensor > &tensors)
Find the broadcast dynamic shape of all the tensors The returned dynamic shape will be traceable.
Definition Tensor.cxx:46
Definition DiagnosticsInterface.cxx:30
std::tuple< Scalar, Scalar, Scalar > parametric_coordinates(const Scalar &X, const Scalar &x)
Definition Interpolation.cxx:32
T apply_mask(const T &a, const Scalar &m, std::size_t mdim)
Definition Interpolation.h:37