22 #ifndef __PLUMED_tools_LatticeReduction_h
23 #define __PLUMED_tools_LatticeReduction_h
static void sort(Vector v[3])
Sort three vectors by modulo.
Class implementing fixed size matrices of doubles.
Class implementing fixed size vectors of doubles.
static bool isReduced(const Vector &a, const Vector &b)
Check if two vectors are reduced.
static void reduceFast(Tensor &t)
Reduce a basis in place using the fast algorithm (Algorithm 3 in the paper)
static bool isReduced2(const Vector &a, const Vector &b, const Vector &c)
Check if three vectors are reduced-2.
Class implementing algorithms for lattice reduction.
static void reduce2(Vector &a, Vector &b, Vector &c)
Obtain three reduce-2 vectors (Algorithm 1 in the paper), equivalent to reduce2(Tensor&t) ...
static void reduce(Vector &a, Vector &b)
Gaussian reduction.
static void reduceSlow(Tensor &t)
Reduce a basis in place using the slow algorithm (Algorithm 2 in the paper)