source: git/Tst/Old/intmat.tst @ 4b2bdf

fieker-DuValspielwiese
Last change on this file since 4b2bdf was 46976a6, checked in by Olaf Bachmann <obachman@…>, 26 years ago
* added status check to regress.cmd * added tst_status(1); call to each tst file, just before quit git-svn-id: file:///usr/local/Singular/svn/trunk@2271 2c84dea3-7e68-4137-9b89-c4e89433aadc
  • Property mode set to 100644
File size: 574 bytes
Line 
1//
2// intmat.tst
3//
4
5intvec iv = 1,3,5;
6intmat m[4][3];
7m=iv,1,2,3,4,5,6,iv;
8m;
9m*iv;
10intmat n[4][3];
11n=1,2,3,4,5,7,iv,iv;
12n*transpose(m);
13n*m;
14n+m;
15n-m;
16trace(m*transpose(n));
17m[1,2..3];
18m[3..4,2];
19intmat sub[2][2];
20intvec i1=2,4;
21intvec i2=1,3;
22sub=n[i1,i2];
23sub;
24kill iv,n,m,i1,i2,sub;
25
26intmat i[2][3];
27i=1,2,3,4,5,0,1;
28intmat j;
29listvar(all);
30size(i);
31nrows(i);
32ncols(i);
33i;
34j;
35i[2,1];
36i[0,3];
37i[20];
38j=i;
39j;
40listvar(all);
41i + 2;
42i - 2;
43i * 2;
44i / 2;
45i == 2;
46intvec t=i;
47intmat t=i;
48i==t;
49i + i;
50i*j;
51transpose(j)*j;
52trace(transpose(j)*j);
53LIB "tst.lib";tst_status(1);$
Note: See TracBrowser for help on using the repository browser.