source: git/Tst/Manual/primitiveSpan.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: 438 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3intmat V[3][2] =
41,4,
52,5,
63,6;
7// should return a (3x2)-matrix whose columns
8// generate the same lattice as [1, 2, 3] and [0, 1, 2]
9intmat R = primitiveSpan(V);
10print(R);
11// another example
12intmat W[2][2] =
131,0,
140,1;
15// should return a (2x2)-matrix whose columns
16// generate the same lattice as [1, 0] and [0, 1]
17intmat S = primitiveSpan(W);
18print(S);
19kill V, R, S, W;
20tst_status(1);$
Note: See TracBrowser for help on using the repository browser.