source: git/Tst/Manual/latticeBasis.tst @ 951db29

spielwiese
Last change on this file since 951db29 was 894057, checked in by Oleksandr Motsak <motsak@…>, 13 years ago
ADD: Tests from online manual (res+stat on mamawutz): short ones Tst/Manual/s.lst
  • Property mode set to 100644
File size: 429 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3intmat L[3][3] =
41,4,8,
52,5,10,
63,6,12;
7intmat B = latticeBasis(L);
8print(B); // should result in a matrix whose columns generate the same lattice as  [1,2,3] and [0,3,6]:
9// another example
10intmat C[2][4] =
111,1,2,0,
122,3,4,0;
13// should result in a matrix whose
14// colums create the same  lattice as
15// [0,1],[1,0]
16intmat D = latticeBasis(C);
17print(D);
18kill B,L;
19tst_status(1);$
Note: See TracBrowser for help on using the repository browser.