generator matrix in latice