On 4/5/07, Henry Rich <[EMAIL PROTECTED]> wrote:
You got it right.  I have added:

  The sentence is equivalent to +/ "1 i. 2 3 .

to the example +/ "_1 i. 2 3.

The 'list whose shape is the frame'... list of
what?

a frame is a list which is a sublist of the shape of the noun. So for
the noun i. 4 5 6
the sublists are:
empty
4
4 5
4 5 6

all of which could be the frame.

but the frame is just a shape. But what is it the shape of? There is
no word for the data structure that the frame is the shape of.


If you mean the list of the cells, why,
that's just the original operand.

Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On Behalf Of Terrence Brannon
> Sent: Thursday, April 05, 2007 11:43 AM
> To: General forum
> Subject: [Jgeneral] fleshing out the operation of negative verb rank
>
> The negative verb rank section:
>
> http://www.jsoftware.com/help/jforc/loopless_code_i_verbs_have
> _r.htm#_Toc141157991
>
> was not very algorithmic. It wanted something more precise so I wrote
> it. I only covered 1 of the 3 examples.
>
>    +/ "_1 i. 2 3
>
> 3 12
>
> * verb rank: _1
> * noun rank: 2
> * therefore, r = _1
> * we must find the frame with respect to _1-cells
>   - let's take the absolute value of _1. This is 1
>   - therefore the length of the frame is 1
>   - because the shape of the input array is 2 3,
>     f = 2
> * because f = 2, we know that the output will look like this:
>
> -------------------
> |        |        |
> -------------------
>
> and we just need to stuff _1-cells in the boxes.
> They will be of length 3, and so here is how we stuff the frame
> (actually the frame is a shape, the list whose shape is the frame does
> not have a word in J [but it should]):
>
> -------------------
> | 0 1 2  | 3 4 5  |
> -------------------
>
> Now we apply +/ to each box. Monadic +/ inserts a + between the items
> of its noun. The items of a rank-1 array are atoms, so we have this:
>
> ---------------------------
> | 0 + 1 + 2  | 3 + 4 + 5  |
> ---------------------------
>
> and then this:
>
> ------------
> | 3  | 12  |
> ------------
> ----------------------------------------------------------------------
> 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

Reply via email to