Talk About Network



Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Apl > Re: Filling a m...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 3 of 6 Topic 923 of 1019
Post > Topic >>

Re: Filling a matrix with values

by Phil Last <phil.last@[EMAIL PROTECTED] > Dec 24, 2007 at 07:53 AM

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.




 6 Posts in Topic:
Filling a matrix with values
Jimmy Miller <CaptainT  2007-12-24 04:19:11 
Re: Filling a matrix with values
Lance <LanceMD@[EMAIL   2007-12-24 07:13:20 
Re: Filling a matrix with values
Phil Last <phil.last@[  2007-12-24 07:53:14 
Re: Filling a matrix with values
sethb@[EMAIL PROTECTED]   2007-12-24 16:09:26 
Re: Filling a matrix with values
aleph0 <apl68000@[EMAI  2007-12-24 10:10:37 
Re: Filling a matrix with values
admin9974@[EMAIL PROTECTE  2007-12-25 12:34:28 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat May 17 1:33:40 CDT 2008.