27#include "neml2/tensors/PrimitiveTensor.h"
28#include "neml2/tensors/Scalar.h"
29#include "neml2/tensors/R2.h"
30#include "neml2/tensors/functions/linalg/vector_norm.h"
42template <
class Derived>
48 [[nodiscard]]
static Derived
fill(
const Real & v1,
PrimitiveTensor()=default
Second order tensor without symmetry.
Definition R2.h:42
Third order tensor without symmetry.
Definition R3.h:41
Rotation stored as modified Rodrigues parameters.
Definition Rot.h:49
Scalar.
Definition Scalar.h:38
Base class 3-vector.
Definition VecBase.h:44
Derived rotate(const Rot &r) const
Rotate using a Rodrigues vector.
Definition VecBase.cxx:79
static Derived fill(const Real &v1, const Real &v2, const Real &v3, const TensorOptions &options=default_tensor_options())
Definition VecBase.cxx:34
Scalar operator()(Size i) const
Accessor.
Definition VecBase.cxx:58
Scalar norm_sq() const
Norm squared.
Definition VecBase.cxx:65
Scalar norm() const
Norm.
Definition VecBase.cxx:72
R2 drotate(const Rot &r) const
Derivative of the rotated vector w.r.t. the Rodrigues vector.
Definition VecBase.cxx:93
static R2 identity_map(const TensorOptions &options=default_tensor_options())
The derivative of a vector with respect to itself.
Definition VecBase.cxx:51
Definition DiagnosticsInterface.cxx:30
TensorOptions default_tensor_options()
Default floating point tensor options.
Definition defaults.cxx:44
double Real
Definition types.h:68
int64_t Size
Definition types.h:69
c10::TensorOptions TensorOptions
Definition types.h:63