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 | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | intmat A[3][2] = |
---|
4 | 1,4, |
---|
5 | 2,5, |
---|
6 | 3,6; |
---|
7 | intmat B[3][2] = |
---|
8 | 6,9, |
---|
9 | 7,10, |
---|
10 | 8,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) |
---|
13 | print(intersectLattices(A,B)); |
---|
14 | // another example |
---|
15 | intmat C[2][3] = |
---|
16 | 1,0,0, |
---|
17 | 3,2,5; |
---|
18 | intmat D[2][3] = |
---|
19 | 4,5,0, |
---|
20 | 0,5,0; |
---|
21 | // should result in a (3x2)-matrix whose columns generate the |
---|
22 | // same lattice as [1,5], [0, 20] |
---|
23 | print(intersectLattices(C,D)); |
---|
24 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.