27#include "neml2/tensors/PrimitiveTensor.h"
Represention of a crystal direction or plane a Miller Index.
Definition MillerIndex.h:38
Vec to_normalized_vec(const TensorOptions &options=default_tensor_options()) const
Convert back to a normalized real Vec.
Definition MillerIndex.cxx:58
static MillerIndex fill(int64_t a, int64_t b, int64_t c, const TensorOptions &options=default_integer_tensor_options())
Most likely construction method – make from three ints.
Definition MillerIndex.cxx:39
Vec to_vec(const TensorOptions &options=default_tensor_options()) const
Convert back to a (real) Vec.
Definition MillerIndex.cxx:52
Scalar operator()(Size i) const
Accessor.
Definition MillerIndex.cxx:33
MillerIndex reduce() const
Reduce to the greatest common demoninator.
Definition MillerIndex.cxx:45
PrimitiveTensor inherits from TensorBase and additionally templates on the base shape.
Definition PrimitiveTensor.h:45
PrimitiveTensor()=default
Scalar.
Definition Scalar.h:38
3-vector.
Definition Vec.h:43
Definition DiagnosticsInterface.cxx:30
TensorOptions default_tensor_options()
Default floating point tensor options.
Definition defaults.cxx:42
int64_t Size
Definition types.h:65
TensorOptions default_integer_tensor_options()
Default integral tensor options.
Definition defaults.cxx:60
c10::TensorOptions TensorOptions
Definition types.h:60