27#include "neml2/tensors/PrimitiveTensor.h"
89 [[nodiscard]]
static R2 skew(
const Vec & v);
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
R3 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
Definition R2.cxx:139
Vec row(Size i) const
Row.
Definition R2.cxx:156
static R2 skew(const Vec &v)
Skew matrix from Vec.
Definition R2.cxx:111
static R2 fill(const CScalar &a, const TensorOptions &options=default_tensor_options())
Fill the diagonals with a11 = a22 = a33 = a.
Definition R2.cxx:52
Vec col(Size i) const
Coluomn.
Definition R2.cxx:162
R2(const SR2 &S)
Form a full R2 from a symmetric tensor.
Definition R2.cxx:41
R2 transpose() const
transpose
Definition R2.cxx:168
R2 rotate(const Rot &r) const
Rotate using a Rodrigues vector.
Definition R2.cxx:127
static R2 identity(const TensorOptions &options=default_tensor_options())
Identity.
Definition R2.cxx:121
Third order tensor without symmetry.
Definition R3.h:41
Fourth order tensor without symmetry.
Definition R4.h:43
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The symmetric second order tensor.
Definition SR2.h:46
Scalar.
Definition Scalar.h:38
3-vector.
Definition Vec.h:43
A skew-symmetric second order tensor, represented as an axial vector.
Definition WR2.h:43
Definition DiagnosticsInterface.cxx:30
TensorOptions default_tensor_options()
Default floating point tensor options.
Definition defaults.cxx:42
Tensor operator*(const Tensor &a, const Tensor &b)
Definition operators.cxx:171
int64_t Size
Definition types.h:65
c10::Scalar CScalar
Definition types.h:39
c10::TensorOptions TensorOptions
Definition types.h:60