25#include "neml2/tensors/Transformable.h"
27#include "neml2/tensors/tensors.h"
47 return rot.euler_rodrigues();
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
A batched quaternion.
Definition Quaternion.h:44
static R2 fill(const Real &a, const torch::TensorOptions &options=default_tensor_options())
Fill the diagonals with a11 = a22 = a33 = a.
Definition R2Base.cxx:40
static R2 identity(const torch::TensorOptions &options=default_tensor_options())
Identity.
Definition R2Base.cxx:170
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
The (logical) vector.
Definition Vec.h:42
Definition CrossRef.cxx:32
R2 identity_transform(const torch::TensorOptions &options)
The identity transformation, i.e.e the Rank2 identity tensor.
Definition Transformable.cxx:39
R2 inversion_transform(const torch::TensorOptions &option)
An inversion center.
Definition Transformable.cxx:64
R2 transform_from_quaternion(const Quaternion &q)
Construct from quaternions, useful for comparison to old NEML.
Definition Transformable.cxx:33
R2 improper_rotation_transform(const Rot &rot)
An improper rotation (rotation + reflection), here provided by a rot object giving the rotation and r...
Definition Transformable.cxx:51
R2 reflection_transform(const Vec &v)
A reflection, defined by the reflection plane.
Definition Transformable.cxx:58
R2 proper_rotation_transform(const Rot &rot)
A proper rotation, here provided by a Rot object.
Definition Transformable.cxx:45