On Dec 24, 6:19=A0am, Jimmy Miller <CaptainThun...@[EMAIL PROTECTED]
> wrote:
> I'm a complete beginner to APL, and I had the following question:
>
> Suppose I have a 16x16 matrix of values. =A0How would I set each value
> in the matrix (starting in the second row) equal to the sum of the
> matrix element directly above it, and the element to the top-left of
> it? =A0Essentially,
>
> m[x;y]=3Dm[x;y-1]+m[x-1;y-1]
>
> But I'm not sure how to express that in APL. =A0I've tried entering just
> that in APL (with proper symbols, of course), but it doesn't work
> because x and y are arrays, and I need to access only two single
> elements of the matrix.
I'm a little confused. You state 'matrix element directly above it',
which to me would be m[x-1,y]. Also, it isn't completely clear to me
the meaning of 'the element to the top-left of it'.
Lance


|