[back] [prev] [next] [index] [root]

 


LatEnumRefVec

Reads or sets a reference vector for enumeration.

Syntax:

v := LatEnumRefVec(Lambda [,v]);

vector
  v  
lattice
  Lambda  

Description:

A reference vector of a lattice l \subsetR^n is a vector v\in Rotimes_Z l. If the reference vector is set, we will enumerate points in v-l. Typically it is used to find points with minimal distance to the reference vector.


Example:


kash> Lambda := Lat(MatId(Z, 2));;
kash> LatEnumRefVec(Lambda, LatElt(Lambda, [1.7, 3.4]));
[1.7 3.4]

kash> LatShortestElt(Lambda);
> [ [ 2 3 ]
     ]


<- back[back] [prev] [next] [index] [root]