Am 20 Aug 2007 um 12:25 hat Sheldon Newhouse geschrieben:
> Hello,
> Is there a function giving the max and min of the rows of a matrix ?
The functions row and col return matrices, so lmin and lmax (which need lists) can't be
applied directly. Possible is for example
(%i1) M: matrix([1,2,3],[4,5,6])$
(%i2) row(M,1)[1];
(%o2) [1, 2, 3]
(%i3) lmax(%);
(%o3) 3
(%i4) transpose(col(M,1))[1];
(%o4) [1, 4]
(%i5) lmin(%);
(%o5) 1
HTH
Volker van Nek