source: git/Tst/Manual/intersectLattices.tst @ 6fb723

spielwiese
Last change on this file since 6fb723 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: 484 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3intmat A[3][2] =
41,4,
52,5,
63,6;
7intmat B[3][2] =
86,9,
97,10,
108,11;
11// should result in a (3x2)-matrix with columns
12//  e.g. [0, 3, 6], [-3, 0, 3] (the lattice should be the same)
13print(intersectLattices(A,B));
14// another example
15intmat C[2][3] =
161,0,0,
173,2,5;
18intmat D[2][3] =
194,5,0,
200,5,0;
21// should result in a (3x2)-matrix whose columns generate the
22// same lattice as [1,5], [0, 20]
23print(intersectLattices(C,D));
24tst_status(1);$
Note: See TracBrowser for help on using the repository browser.