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:
284 bytes
|
Line | |
---|
1 | LIB "tst.lib"; tst_init(); |
---|
2 | LIB "multigrading.lib"; |
---|
3 | intmat A[3][4] = |
---|
4 | 1,0,1,0, |
---|
5 | 1,2,0,0, |
---|
6 | 0,0,0,0; |
---|
7 | int r = intRank(A); |
---|
8 | print(A); |
---|
9 | print(r); // Should be 2 |
---|
10 | // another example |
---|
11 | intmat B[2][2] = |
---|
12 | 1,2, |
---|
13 | 1,2; |
---|
14 | int d = intRank(B); |
---|
15 | print(B); |
---|
16 | print(d); // Should be 1 |
---|
17 | kill A, B, r, d; |
---|
18 | tst_status(1);$ |
---|
Note: See
TracBrowser
for help on using the repository browser.