27#include "neml2/tensors/PrimitiveTensor.h"
45 [[nodiscard]]
static Scalar
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:45
PrimitiveTensor()=default
Scalar.
Definition Scalar.h:38
Scalar(const CScalar &init, const TensorOptions &options)
Definition Scalar.cxx:30
static Scalar identity_map(const TensorOptions &options=default_tensor_options())
The derivative of a Scalar with respect to itself.
Definition Scalar.cxx:40
neml2::Tensor base_unsqueeze_to(Size n) const
Expand base dimension to a given size.
Definition Scalar.cxx:46
Definition DiagnosticsInterface.cxx:30
TensorOptions default_tensor_options()
Default floating point tensor options.
Definition defaults.cxx:42
int64_t Size
Definition types.h:65
c10::Scalar CScalar
Definition types.h:39
c10::TensorOptions TensorOptions
Definition types.h:60