It is true that a verb with rank k will not be applied to
k-cells if the rank of the noun is less than k (this is
obvious when k is infinite).

My approach was to define k-cell talking about nouns
only.  Later, when verb rank is introduced, I point out
that if the verb rank is greater than the operand rank,
it applies to the operand in toto.

Terrence hasn't gotten that far yet, and I guess I shouldn't
be talking so much about operating on the nouns in this section.
And Oleg is right that 'elements' is a bad choice of words.



So, I propose the following wording:


A rank 3 array of shape 4 5 6 such as the one defined in C by
the declaration
        int q[4][5][6];
can be thought of as an array of 4 subarrays, each with rank
2 and shape 5 6, or as a 4×5 array of subarrays, each with
rank 1 and shape 6, or as a 4×5×6 array of rank 0 atoms.  
One of these subarrays is called a cell.  As seen in the 
example above, the axes of a cell are a suffix of the axes 
of the entire array.  A cell of rank k is called a k-cell:
a 0-cell is an atom, a 1-cell is a subarray of rank 1, 
a 2-cell is a subarray of rank 2, and so on.


Henry Rich

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of Raul Miller
> Sent: Tuesday, April 03, 2007 5:02 PM
> To: General forum
> Subject: Re: [Jgeneral] "J for C programmers" editorial corrections
> 
> On 4/3/07, Terrence Brannon <[EMAIL PROTECTED]> wrote:
> > < quote 
> href=http://www.jsoftware.com/help/jforc/declarations.htm#_Toc
> 141157971
> > >
> > The term cell is used to indicate the rank of the elements that will
> > be operated on.  A 0-cell is an atom, a 1-cell is an element of rank
> > 1, a 2-cell is an element of rank 2, and so on.
> > < / quote >
> 
> Er... Henry -- those are your words.  Could you weigh in here?
> 
> Thanks,
> 
> -- 
> Raul
> ----------------------------------------------------------------------
> 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