27#include "neml2/tensors/PrimitiveTensor.h"
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.
A batched quaternion.
Definition Quaternion.h:45
Quaternion(const Rot &r)
Definition Quaternion.cxx:38
static Quaternion fill(const Scalar &s, const Scalar &q1, const Scalar &q2, const Scalar &q3)
fill with four scalars
Definition Quaternion.cxx:58
Scalar operator()(Size i) const
Accessor.
Definition Quaternion.cxx:64
Scalar dot(const Quaternion &other) const
Dot product.
Definition Quaternion.cxx:90
Scalar dist(const Quaternion &other) const
Distance measure between two quaternions.
Definition Quaternion.cxx:96
R2 to_R2() const
Convert to R2.
Definition Quaternion.cxx:70
Second order tensor without symmetry.
Definition R2.h:42
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
Scalar.
Definition Scalar.h:38
Definition CrossRef.cxx:31
torch::TensorOptions & default_tensor_options()
Definition types.cxx:157
double Real
Definition types.h:31
int64_t Size
Definition types.h:33