byu@csri.toronto.edu (Benjamin Yu) (09/26/90)
To all 48SX gurus, is there a simple way of decomposing a matrix into
vectors, for example from N x M matrix to N vectors of size M??
  [ [1 2 3]
    [4 5 6] ]   -->    [1 2 3] 
		       [4 5 6]
I thougth OBJ-> would do it since the quick reference guide gives a
kind of 'semantic' function 
      {obj1 ... objn}   ->   obj1 ... objn n
but the above matrix results in 1 2 3 4 5 6 6.
Going the other way, is there a simple way of composing a bunch of vectors
to a matrix??
Benjamin Yu
University of Toronto                CSNET, UUCP, BITNET: 
Department of Computer Science         byu@csri.toronto.edu
Toronto, Ontario   Canada M5S 1A4      byu@csri.utoronto.ca
(o)(416)978 - 4299 (h)(416)470 - 8206  {uunet,watmath}!csri.utoronto.edu!byuedp@ipl31.enet.dec.com (Eric Postpischil (Always mount a scratch monkey.)) (09/26/90)
In article <1990Sep25.233405.6168@jarvis.csri.toronto.edu>, byu@csri.toronto.edu (Benjamin Yu) writes: > [ [1 2 3] > [4 5 6] ] --> [1 2 3] > [4 5 6] ... >but the above matrix results in 1 2 3 4 5 6 6. Huh? The above results in 1 2 3 4 5 6 {2 3}. You could then write a little program which takes the {2 3} and goes through a loop from 1 to 2 converting three elements to a 1-by-3 array using ->ARRY. -- edp