Like this? df1 = :^ ]Nx2 =: i.6 2x 0 1 2 3 4 5 6 7 8 9 10 11 df1/ |: Nx2 0 8 1024 279936 134217728 100000000000
Greetings, Ben ________________________________________ From: [email protected] [[email protected]] on behalf of alexgian [[email protected]] Sent: Wednesday, April 30, 2014 11:49 To: J Programming forum Subject: [Jprogramming] Applying a dyad to exusting matrix data Suppose I have an Nx2 data matrix, say x1 y1 x2 y2 x3 y3 .... and a dyadic verb called, say, df1 Is there an elegant way to get the result matrix x1 df1 y1 x2 df1 y2 x3 df1 y3 ..... without resorting to "from - {" and "take - {." jiggery-pokery Or perhaps just a means to convert an expresiion from the df1 x1 y1 form, to x1 df1 y1 All suggestions gratefully received. ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
