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