Thank you. I guess I was unsure whether v"2 somehow started at the third rank or if it used the last two ranks. Experimentation seemed to indicate that it used the last two, but I was worried that there was some side effect I didn't get that caused it to seem to do that.
So thanks for the info, I hope to use it further, not just in the bingo program I have been writing. On Feb 28, 2018 08:17, "Raul Miller" <[email protected]> wrote: > actually, no. Rank 0 verbs try to match their nouns across the first > dimensions of those nouns. > > So, for example: > > A=: (5#2)#:i.5 > B=: (5#2)#:i.2 5 > $A > 5 5 > $B > 2 5 5 > A=B > |length error > | A =B > A="2 B > 1 1 1 1 1 > 1 1 1 1 1 > 1 1 1 1 1 > 1 1 1 1 1 > 1 1 1 1 1 > > 1 1 0 1 0 > 1 1 0 0 0 > 1 1 0 1 0 > 1 0 1 0 0 > 1 0 0 1 0 > > (The first table in B is identical to A, and the second one is > different. Using A="2 B you can see where they are same and where they > are different. If you want to compare those tables as a whole, you'd > want A-:"2 B) > > I hope this helps, > > -- > Raul > > > On Wed, Feb 28, 2018 at 6:37 AM, bill lam <[email protected]> wrote: > > I suspect ="2 and *."2 are the same as that without rank conjunction > > because = and *. are rank 0 > > > > On Feb 28, 2018 2:18 PM, "Nick S" <[email protected]> wrote: > > > > Someone please tell me if I understand this: > > > > If I have a list of 5x5 tables, that is, a thing with a shape of n 5 5 > > where n is anything from 1 to 30, That is, the shape of the table might > be > > (5 5 or 2 5 5 or 3 5 5 etc.) and I want to compare it against a single > 5x5 > > thing in 5x5 groups, the proper rank to use for the comparison is 2, as > > > > a ="2 b or a -:"2 b or a *."2 b > > > > depending on what I want to do. > > > > When I use a rank 2, does it take the last two dimensions of whatever and > > use those? The examples I see are all for the more common cases of > taking > > a table and processing it by individual items, rows or columns. My > > experimentation seems to indicate that my guess is true, but I am so > damned > > confused at this point, I need to see if I am on the right track. > > > > -- > > Of course I can ride in the carpool lane, officer. Jesus is my constant > > companion. > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > > ---------------------------------------------------------------------- > > For information about J forums see http://www.jsoftware.com/forums.htm > ---------------------------------------------------------------------- > For information about J forums see http://www.jsoftware.com/forums.htm ---------------------------------------------------------------------- For information about J forums see http://www.jsoftware.com/forums.htm
