source: git/Tst/Manual/preimageLattice.tst

spielwiese
Last change on this file 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: 493 bytes
Line 
1LIB "tst.lib"; tst_init();
2LIB "multigrading.lib";
3intmat P[2][3] =
42,6,10,
54,8,12;
6intmat B[2][1] =
71,
80;
9// should be a (3x2)-matrix with columns e.g. [1,1,-1] and [0,3,-2] (the generated lattice should be identical)
10print(preimageLattice(P,B));
11// another example
12intmat W[3][3] =
131,0,0,
140,1,1,
150,2,0;
16intmat Z[3][2] =
171,0,
180,1,
190,0;
20// should be a (3x2)-matrix with columns e.g. [1,0,0] and [0,0,-1] (the generated lattice should be identical)
21print(preimageLattice(W,Z));
22tst_status(1);$
Note: See TracBrowser for help on using the repository browser.