source: git/Tst/Manual/projectLattice.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: 609 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3intmat B[4][2] =
41,5,
52,6,
63,7,
74,8;
8// should result in a (2x4)-matrix such that the corresponding lattice is created by
9// [-1, 2], [-2, 3], [-1, 0] and [0, 1]
10print(projectLattice(B));
11// another example
12intmat BB[4][2] =
131,0,
140,1,
150,0,
160,0;
17// should result in a (2x4)-matrix such that the corresponding lattice is created by
18// [0,0],[0,0],[1,0],[0,1]
19print(projectLattice(BB));
20// another example
21intmat BBB[3][4] =
221,0,1,2,
231,1,0,0,
243,0,0,3;
25// should result in the (1x3)-matrix that consists of just zeros
26print(projectLattice(BBB));
27tst_status(1);$
Note: See TracBrowser for help on using the repository browser.