# sublatticeBasis -- computes a basis for the sublattice generated by integral vectors or lattice points of a polytope

## Synopsis

• Usage:
B = sublatticeBasis M
B = sublatticeBasis P
• Inputs:
• M, , over ZZ with each column representing a sublattice generator
• Outputs:
• B, A matrix over ZZ containing a sublattice basis

## Description

sublatticeBasis computes a basis for the sublattice generated by the columns ofM or by the lattice points ofP.

 i1 : P = convexHull transpose matrix {{0,0,0},{1,0,0},{0,1,0},{1,1,3}} o1 = P o1 : Polyhedron i2 : sublatticeBasis P o2 = | 1 0 1 | | 0 1 1 | | 0 0 3 | 3 3 o2 : Matrix ZZ <--- ZZ

## Ways to use sublatticeBasis :

• "sublatticeBasis(Matrix)"
• "sublatticeBasis(Polyhedron)"

## For the programmer

The object sublatticeBasis is .