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 | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | intmat P[2][3] = |
---|
4 | 2,6,10, |
---|
5 | 4,8,12; |
---|
6 | intmat B[2][1] = |
---|
7 | 1, |
---|
8 | 0; |
---|
9 | // should be a (3x2)-matrix with columns e.g. [1,1,-1] and [0,3,-2] (the generated lattice should be identical) |
---|
10 | print(preimageLattice(P,B)); |
---|
11 | // another example |
---|
12 | intmat W[3][3] = |
---|
13 | 1,0,0, |
---|
14 | 0,1,1, |
---|
15 | 0,2,0; |
---|
16 | intmat Z[3][2] = |
---|
17 | 1,0, |
---|
18 | 0,1, |
---|
19 | 0,0; |
---|
20 | // should be a (3x2)-matrix with columns e.g. [1,0,0] and [0,0,-1] (the generated lattice should be identical) |
---|
21 | print(preimageLattice(W,Z)); |
---|
22 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.