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:56
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:38
PrimitiveTensor()=default
Default constructor.
The (logical) full 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
A basic R2.
Definition R2.h:42
The (logical) full third order tensor.
Definition R3.h:41
The (logical) full fourth order tensor.
Definition R4.h:43
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The (logical) symmetric second order tensor.
Definition SR2.h:46
The (logical) scalar.
Definition Scalar.h:38
The (logical) vector.
Definition Vec.h:42
Definition CrossRef.cxx:30
Vec operator*(const Derived1 &A, const Derived2 &b)
matrix-vector product
Definition R2Base.cxx:233
torch::TensorOptions & default_tensor_options()
Definition types.cxx:30
double Real
Definition types.h:31
int64_t Size
Definition types.h:33