27#include "neml2/tensors/PrimitiveTensor.h"
48template <
class Derived>
55 explicit operator SR2()
const;
136 typename =
typename std::enable_if_t<std::is_base_of_v<R2Base<Derived1>,
Derived1>>,
137 typename =
typename std::enable_if_t<std::is_base_of_v<VecBase<Derived2>,
Derived2>>>
144 typename =
typename std::enable_if_t<std::is_base_of_v<R2Base<Derived1>,
Derived1>>,
145 typename =
typename std::enable_if_t<std::is_base_of_v<R2Base<Derived2>,
Derived2>>>
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:54
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:38
PrimitiveTensor()=default
Default constructor.
Base class for second order tensor.
Definition R2Base.h:50
Derived rotate(const Rot &r) const
Rotate using a Rodrigues vector.
Definition R2Base.cxx:177
R3 drotate(const Rot &r) const
Derivative of the rotated tensor w.r.t. the Rodrigues vector.
Definition R2Base.cxx:191
Scalar operator()(Size i, Size j) const
Accessor.
Definition R2Base.cxx:212
static Derived fill(const Real &a, const torch::TensorOptions &options=default_tensor_options())
Fill the diagonals with a11 = a22 = a33 = a.
Definition R2Base.cxx:40
static Derived identity(const torch::TensorOptions &options=default_tensor_options())
Identity.
Definition R2Base.cxx:170
Derived transpose() const
transpose
Definition R2Base.cxx:226
Derived inverse() const
Inversion.
Definition R2Base.cxx:219
static Derived skew(const Vec &v)
Skew matrix from Vec.
Definition R2Base.cxx:158
Second order tensor without symmetry.
Definition R2.h:42
Third order tensor without symmetry.
Definition R3.h:41
Fourth order tensor without symmetry.
Definition R4.h:44
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:42
Definition CrossRef.cxx:31
Vec operator*(const Derived1 &A, const Derived2 &b)
matrix-vector product
Definition R2Base.cxx:233
torch::TensorOptions & default_tensor_options()
Definition types.cxx:157
double Real
Definition types.h:31
int64_t Size
Definition types.h:33