27#include "neml2/tensors/PrimitiveTensor.h"
45 [[nodiscard]]
static Scalar
PrimitiveTensor()=default
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
Scalar(Real init, const TensorOptions &options)
Definition Scalar.cxx:30
Definition DiagnosticsInterface.cxx:30
TensorOptions default_tensor_options()
Default floating point tensor options.
Definition defaults.cxx:44
double Real
Definition types.h:68
int64_t Size
Definition types.h:69
c10::TensorOptions TensorOptions
Definition types.h:63