7#ifndef gbLAB_LatticeCore_h_
8#define gbLAB_LatticeCore_h_
21 static_assert(dim>0,
"dim must be > 0.");
static VectorDimI rationalApproximation(VectorDimD v)
Approximates a direction in terms of integer coordinates.
static VectorDimI integerCoordinates(const VectorDimD &d, const MatrixDimD &invA)
Returns the integer coordinates of a vector with respect to a lattices with structure matrix .
Eigen::Matrix< double, dim, dim > MatrixDimD
Eigen::Matrix< IntScalarType, dim, dim > MatrixDimI
static constexpr double roundTol
Eigen::Matrix< double, dim, 1 > VectorDimD
long long int IntScalarType
Eigen::Matrix< IntScalarType, dim, 1 > VectorDimI