27#include "neml2/tensors/PrimitiveTensor.h"
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
SR2 transpose() const
Transpose, no-op.
SFR3 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
SFFR4 drotate(const R2 &R) const
static SR2 identity(const TensorOptions &options=default_tensor_options())
Identity.
static SR2 fill(const CScalar &a, const TensorOptions &options=default_tensor_options())
Fill the diagonals with a11 = a22 = a33 = a.
SR2(const R2 &T)
Symmetrize an R2 then fill.
static SR2 fill(const Scalar &a11, const Scalar &a22, const Scalar &a33, const Scalar &a23, const Scalar &a13, const Scalar &a12)
Scalar operator()(Size i, Size j) const
static SR2 fill(const Scalar &a)
static SR2 fill(const CScalar &a11, const CScalar &a22, const CScalar &a33, const TensorOptions &options=default_tensor_options())
Fill the diagonals with a11, a22, a33.
SR2 rotate(const R2 &R) const
static SR2 fill(const CScalar &a11, const CScalar &a22, const CScalar &a33, const CScalar &a23, const CScalar &a13, const CScalar &a12, const TensorOptions &options=default_tensor_options())
Fill all entries.
SR2 rotate(const Rot &r) const
Rotate.
static SR2 fill(const Scalar &a11, const Scalar &a22, const Scalar &a33)
The symmetric fourth order tensor, with symmetry in the first two dimensionss as well as in the last ...
Definition SSR4.h:44
The symmetric fourth order tensor, with symmetry in the first two dimensionss and skew-symmetry in th...
Definition SWR4.h:40
Scalar.
Definition Scalar.h:38
A skew-symmetric second order tensor, represented as an axial vector.
Definition WR2.h:43
Definition DiagnosticsInterface.h:31
TensorOptions default_tensor_options()
Default floating point tensor options.
int64_t Size
Definition types.h:71
c10::Scalar CScalar
Definition types.h:43
c10::TensorOptions TensorOptions
Definition types.h:66