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:
429 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | intmat L[3][3] = |
---|
4 | 1,4,8, |
---|
5 | 2,5,10, |
---|
6 | 3,6,12; |
---|
7 | intmat B = latticeBasis(L); |
---|
8 | print(B); // should result in a matrix whose columns generate the same lattice as [1,2,3] and [0,3,6]: |
---|
9 | // another example |
---|
10 | intmat C[2][4] = |
---|
11 | 1,1,2,0, |
---|
12 | 2,3,4,0; |
---|
13 | // should result in a matrix whose |
---|
14 | // colums create the same lattice as |
---|
15 | // [0,1],[1,0] |
---|
16 | intmat D = latticeBasis(C); |
---|
17 | print(D); |
---|
18 | kill B,L; |
---|
19 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.