Re: [Numpy-discussion] degree matrix construction

2006-09-15 Thread Charles R Harris
On 9/15/06, Satya Upadhya <[EMAIL PROTECTED]> wrote: Dear Friends,my question is the following:Suppose i have the following code:>>> from LinearAlgebra import *>>> from Numeric import *>>> A = [1,2,1,3,1,3,4,1,2] >>> B = reshape(A,(3,3))>>> C = sum(B,1)>>> Carray([4, 7, 7])>>> Now, my problem is to

Re: [Numpy-discussion] degree matrix construction

2006-09-15 Thread Joris De Ridder
Forgot the link to the NEL: http://www.scipy.org/Numpy_Example_List J. Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm - Using Tomcat but need to do more? Need to support web services, security? Get stuff don

Re: [Numpy-discussion] degree matrix construction

2006-09-15 Thread Joris De Ridder
Hi, [SU]: Now, my problem is to construct a degree matrix D which is a 3 * 3 matrix with diagonal elements 4,7,7 You might have a look at the Numpy Example List, at the function diag(). Ciao, Joris Disclaimer: http://www.kuleuven.be/cwis/email_disclaimer.htm