NB. two more ways to generate M M -: >: i. 3 4 1
M -: 3 4 $ #\ i. 12 1 i. vector because there are many ways to organize integers directly [: #\ i. because the interpreter, as I recall, now recognizes this as "counting numbers". But not this for which lengths of the prefixes of the table have lengths 1 2 and 3 #\ i. 3 4 1 2 3 >Date: Fri, 13 Nov 2020 18:05:09 +0100 (CET) >From: "thomas.bulka via Programming" <[email protected]> >To: [email protected] >Subject: [Jprogramming] Getting indices of matrix elements >Message-ID: <[email protected]> >Content-Type: text/plain; charset=UTF-8 > >Hi everyone, > >still learning J, I stumbled across a problem which should be easy to solve, but somehow I have not been able to do so, yet. Say, I have defined a matrix M: > >M =: 3 4 $ >: i. 12 ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
