27#include "neml2/tensors/LabeledTensor.h"
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
A labeled axis used to associate layout of a tensor with human-interpretable names.
Definition LabeledAxis.h:55
A single-batched, logically 2D LabeledTensor.
Definition LabeledMatrix.h:38
LabeledMatrix chain(const LabeledMatrix &other) const
Chain rule product of two derivatives.
Definition LabeledMatrix.cxx:61
static LabeledMatrix identity(TorchShapeRef batch_size, const LabeledAxis &axis, const torch::TensorOptions &options=default_tensor_options())
Create a labeled identity tensor.
Definition LabeledMatrix.cxx:34
void fill(const LabeledMatrix &other, bool recursive=true)
Definition LabeledMatrix.cxx:52
void accumulate(const LabeledMatrix &other, bool recursive=true)
Definition LabeledMatrix.cxx:43
LabeledMatrix inverse() const
Invert a LabeledMatrix for use in an implicit function derivative.
Definition LabeledMatrix.cxx:76
The primary data structure in NEML2 for working with labeled tensor views.
Definition LabeledTensor.h:44
const LabeledAxis & axis(TorchSize i=0) const
Get a specific labeled axis.
Definition LabeledTensor.h:130
LabeledTensor()=default
Default constructor.
torch::TensorOptions options() const
Get the tensor options.
Definition LabeledTensor.h:112
Definition CrossRef.cxx:32
const torch::TensorOptions default_tensor_options()
Definition types.cxx:30
torch::IntArrayRef TorchShapeRef
Definition types.h:37