Alex Rufon wrote:
There's that rank 0 again!
I know that its discussed in the books but can anybody give a simplistic
explanation on why and when to use rank 0? I only use rank 1 and its
most likely I misunderstand it. I only use rank 1 when I try to apply a
verb on the column level of a two dimension matrix. I assume (from what
I've read so far) that rank zero is the rows of a two dimension matrix
and is assumed that its there and is omitted.
So why rank 0 again?
I guess the short answer is that the ('r<0>2.0'&(8!:2)) is rank unbound, and
that this verb is not smart enough to guess what you intended. cf,
('r<0>2.0'&(8!:2)) i. 10
00010203040506070809
('r<0>2.0'&(8!:2)) ,.i. 10
00
01
02
03
04
05
06
07
08
09
<"1 ('r<0>2.0'&(8!:2)) ,.i. 10
+--+--+--+--+--+--+--+--+--+--+
|00|01|02|03|04|05|06|07|08|09|
+--+--+--+--+--+--+--+--+--+--+
regards,
----------------------------------------------------------------------
For information about J forums see http://www.jsoftware.com/forums.htm