source: git/Tst/Manual/intmat_expressions.tst @ 951db29

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: 331 bytes
Line 
1LIB "tst.lib"; tst_init();
2  intmat Idm[2][2];
3  Idm +1;          // add the unit intmat
4  intmat m1[3][2] = _,1,-2;  // take entries from the last result
5  m1;
6  intmat m2[2][3]=1,0,2,4,5,1;
7  transpose(m2);
8  intvec v1=1,2,4;
9  intvec v2=5,7,8;
10  m1=v1,v2;         // fill m1 with v1 and v2
11  m1;
12  trace(m1*m2);
13tst_status(1);$
Note: See TracBrowser for help on using the repository browser.