27#include "neml2/tensors/PrimitiveTensor.h"
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:51
PrimitiveTensor()=default
Base class for second order tensor.
Definition R2.h:49
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The fourth order tensor with minor symmetry in the 1st and 2nd dimensions.
Definition SFFR4.h:37
The third order tensor with symmetry in the first two dimensions.
Definition SFR3.h:38
The symmetric second order tensor.
Definition SR2.h:46
SR2 transpose() const
Transpose, no-op.
Definition SR2.cxx:144
SFR3 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
Definition SR2.cxx:123
SR2(const R2 &T)
Symmetrize an R2 then fill.
Definition SR2.cxx:42
Scalar operator()(Size i, Size j) const
Accessor.
Definition SR2.cxx:137
static SR2 fill(const CScalar &a, const TensorOptions &options=default_tensor_options())
Fill the diagonals with a11 = a22 = a33 = a.
Definition SR2.cxx:48
SR2 rotate(const Rot &r) const
Rotate.
Definition SR2.cxx:111
static SR2 identity(const TensorOptions &options=default_tensor_options())
Identity.
Definition SR2.cxx:105
Scalar.
Definition Scalar.h:38
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