It's the end of a long day, and my brain is turning to mush.  I have the
following sample numeric array:

   ]a=. 3 4 $ i.12
0 1  2  3
4 5  6  7
8 9 10 11

Formula d45 ("Box columns") on the "Special Matrices & Lists" page in
"Phrases":

   ]a2=. 1 <@|:;.1 |: a  OR  ]a2=. 1 1 1 1 <@|:;.1 |: a
+-+-+--+--+
|0|1| 2| 3|
|4|5| 6| 7|
|8|9|10|11|
+-+-+--+--+

No matter what I've tried, I can't seem to "box rows", like this:

+---------+
|0 1  2  3|
+---------+
|4 5  6  7|
+---------+
|8 9 10 11|
+---------+

I keep getting the following boxed structure but not the boxing above:

+-------+-------+---------+
|0 1 2 3|4 5 6 7|8 9 10 11|
+-------+-------+---------+

I'm sure it's something quite elementary, but I just can't seem to come
up with it.  Thanks in advance for your help!

Harvey

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

Reply via email to