Basis of a toric lattice (source code)

= Basis of a toric lattice

= Lattice basis
{synonym}

= Lattice bases
{synonym}

A lattice basis $v_1,\ldots,v_n$ expresses each vector of the <toric lattice> uniquely as $\sum_i a_iv_i$ with $a_i\in\mathbb Z$. Relative to any fixed integral basis, vectors form another lattice basis exactly when their determinant is $\pm1$. A primitive vector is one whose integer span is saturated; it can be completed to such a basis by the Euclidean algorithm.