,: b. _1
{.


On 11-12-12 19:22, David Ward Lambert wrote:
Use itemize,  ,:

    $ ,: i. 8
1 8


ravel insert works the other way,

    $ ,/ ,: i. 8
8
On Tue, 2012-12-11 at 17:23 +0000,
[email protected] wrote:
Date: Tue, 11 Dec 2012 17:20:05 +0000
From: Alex Giannakopoulos <[email protected]>
To: [email protected]
Subject: [Jprogramming]  Promoting a vector to a matrix (changing
         rank)
Message-ID:
         <CAD=R9JM0E9pugurOr1Cs+oO1
[email protected]>
Content-Type: text/plain; charset=ISO-8859-1

Is there a better way (rhetorical question) to promote an n-element
vector,
i.e. of of shape N to a single row matrix of shape (1 N) ?
The best I have come up with so far is:
    v2m =. ] $~ 1,$

I have read up on m"n in the Dictionary, but can't make much sense of
it.

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

--
Met vriendelijke groet,
@@i = Arie Groeneveld

----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm

Reply via email to