27#include "neml2/tensors/PrimitiveTensor.h"
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:56
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:38
PrimitiveTensor()=default
Default constructor.
A basic R2.
Definition R2.h:42
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The logical fourth order tensor with minor symmetry in the 1st and 2nd dimensions.
Definition SFFR4.h:37
The logical third order tensor with symmetry in the first two dimensions.
Definition SFR3.h:38
The (logical) symmetric second order tensor.
Definition SR2.h:46
SR2 transpose() const
Transpose, no-op.
Definition SR2.cxx:218
SFR3 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
Definition SR2.cxx:134
Scalar tr() const
Trace.
Definition SR2.cxx:155
SR2 inverse() const
Inversion.
Definition SR2.cxx:212
static SR2 identity(const torch::TensorOptions &options=default_tensor_options())
Identity.
Definition SR2.cxx:110
SR2(const R2 &T)
Symmetrize an R2 then fill.
Definition SR2.cxx:40
Scalar operator()(Size i, Size j) const
Accessor.
Definition SR2.cxx:148
Scalar inner(const SR2 &other) const
Double contraction ij,ij.
Definition SR2.cxx:186
SSR4 outer(const SR2 &other) const
Outer product ij,kl -> ijkl.
Definition SR2.cxx:205
Scalar det() const
Determinant.
Definition SR2.cxx:173
SR2 rotate(const Rot &r) const
Rotate.
Definition SR2.cxx:122
SR2 dev() const
Deviatoric part of the tensor.
Definition SR2.cxx:167
Scalar norm_sq() const
Norm squared.
Definition SR2.cxx:193
Scalar norm(Real eps=0) const
Norm.
Definition SR2.cxx:199
SR2 vol() const
Volumetric part of the tensor.
Definition SR2.cxx:161
static SSR4 identity_map(const torch::TensorOptions &options=default_tensor_options())
The derivative of a SR2 with respect to itself.
Definition SR2.cxx:116
static SR2 fill(const Real &a, const torch::TensorOptions &options=default_tensor_options())
Fill the diagonals with a11 = a22 = a33 = a.
Definition SR2.cxx:46
The (logical) symmetric fourth order tensor, with symmetry in the first two dimensionss as well as in...
Definition SSR4.h:44
The (logical) scalar.
Definition Scalar.h:38
Definition CrossRef.cxx:30
torch::TensorOptions & default_tensor_options()
Definition types.cxx:30
double Real
Definition types.h:31
int64_t Size
Definition types.h:33