source:
git/Tst/Manual/primitiveSpan.tst
@
951db29
Last change on this file since 951db29 was 894057, checked in by , 13 years ago | |
---|---|
|
|
File size: 438 bytes |
Line | |
---|---|
1 | LIB "tst.lib"; tst_init(); |
2 | LIB "multigrading.lib"; |
3 | intmat V[3][2] = |
4 | 1,4, |
5 | 2,5, |
6 | 3,6; |
7 | // should return a (3x2)-matrix whose columns |
8 | // generate the same lattice as [1, 2, 3] and [0, 1, 2] |
9 | intmat R = primitiveSpan(V); |
10 | print(R); |
11 | // another example |
12 | intmat W[2][2] = |
13 | 1,0, |
14 | 0,1; |
15 | // should return a (2x2)-matrix whose columns |
16 | // generate the same lattice as [1, 0] and [0, 1] |
17 | intmat S = primitiveSpan(W); |
18 | print(S); |
19 | kill V, R, S, W; |
20 | tst_status(1);$ |
Note: See TracBrowser
for help on using the repository browser.