On Dec 24, 3:13 pm, Lance <Lanc...@[EMAIL PROTECTED]
> wrote:
> On Dec 24, 6:19 am, 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. How 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? Essentially,
>
> > m[x;y]=3Dm[x;y-1]+m[x-1;y-1]
>
> > But I'm not sure how to express that in APL. I'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
(1 0=E2=86=93m)=E2=86=902+/0,=C2=AF1 0=E2=86=93m =E2=8D=9D should do what
yo=
u asked but the first row and
column might not be what you want.


|