25#include "neml2/models/crystallography/MillerIndex.h"
27#include "neml2/tensors/Vec.h"
34 return torch::tensor({a, b,
c}, options);
50 return this->
to(options);
BatchTensor base_index(const TorchSlice &indices) const
Return an index sliced on the base dimensions.
Definition BatchTensorBase.cxx:193
Derived to(const torch::TensorOptions &options) const
Send to options.
Definition BatchTensorBase.cxx:331
The wrapper (decorator) for cross-referencing unresolved values at parse time.
Definition CrossRef.h:52
Represention of a crystal direction or plane a Miller Index.
Definition MillerIndex.h:38
Vec to_vec(const torch::TensorOptions &options=default_tensor_options()) const
Convert back to a (real) Vec.
Definition MillerIndex.cxx:48
static MillerIndex fill(Integer a, Integer b, Integer c, const torch::TensorOptions &options=default_integer_tensor_options())
Most likely construction method – make from three ints.
Definition MillerIndex.cxx:32
Vec to_normalized_vec(const torch::TensorOptions &options=default_tensor_options()) const
Convert back to a normalized real Vec.
Definition MillerIndex.cxx:54
MillerIndex reduce() const
Reduce to the greatest common demoninator.
Definition MillerIndex.cxx:38
The (logical) vector.
Definition Vec.h:42
Definition CrossRef.cxx:32
int Integer
Definition types.h:34