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 > Filling a matri...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 6 Topic 923 of 1014
Post > Topic >>

Filling a matrix with values

by Jimmy Miller <CaptainThunder@[EMAIL PROTECTED] > Dec 24, 2007 at 04:19 AM

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]=m[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.




 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 Mon May 12 1:11:21 CDT 2008.