27#include "neml2/tensors/FixedDimTensor.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:52
FixedDimTensor inherits from BatchTensorBase and additionally templates on the base shape.
Definition FixedDimTensor.h:38
FixedDimTensor()=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
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
Scalar operator()(TorchSize i, TorchSize j) const
Accessor.
Definition R2Base.cxx:212
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:32
BatchTensor operator*(const BatchTensor &a, const BatchTensor &b)
Definition BatchTensor.cxx:153
const torch::TensorOptions default_tensor_options()
Definition types.cxx:30
int64_t TorchSize
Definition types.h:35
double Real
Definition types.h:33