source: git/Tst/Old/matrows.tst @ 882ae9c

spielwiese
Last change on this file since 882ae9c 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: 367 bytes
Line 
1proc mrows
2{
3  string @rc;
4  for (int @i = 1; @i<=ncols(#[1]); @i=@i+1)
5  {
6    @rc = @rc + "m[" + string(#[2]) + "," + string(@i) + "],";
7  }
8  @rc = @rc[1,size(@rc)-1] + ";";
9  return (@rc);
10}
11ring r= 32003,(x,y,z),lp;
12matrix m[3][3] = 0;
13m[1,1] = 4x;
14m[1,2] = y5x;
15m;
16for (int ii=1; ii<=nrows(m); ii=ii+1)
17{
18  execute mrows(m,ii);
19}
20LIB "tst.lib";tst_status(1);$;
Note: See TracBrowser for help on using the repository browser.