Dear All,
Just a few queries regarding matrices. On my python shell i typed:
 
>>> from Numeric import *
>>> from LinearAlgebra import *
>>> A = [1,2,3,4,5,6,7,8,9]
>>> B = reshape(A,(3,3))
>>> B
array([[1, 2, 3],
       [4, 5, 6],
       [7, 8, 9]])
>>> X = identity(3)
>>> X
array([[1, 0, 0],
       [0, 1, 0],
       [0, 0, 1]])
>>> D = power(B,0)
>>> D
array([[1, 1, 1],
       [1, 1, 1],
       [1, 1, 1]])
 
the power function is giving a resultant matrix in which each element of matrix B is raised to the power of 0 so as to make it 1. But, taken as a whole i.e. matrix B to the power of 0 should have given the identity matrix.
 
Also, what is the procedure for taking the log of an entire matrix (log(A) where A is a matrix takes the log of every individual element in A, but thats not the same as taking the log of the entire matrix)
 
Thanking you,
Satya


Here's a new way to find what you're looking for - Yahoo! Answers
Send FREE SMS to your friend's mobile from Yahoo! Messenger Version 8. Get it NOW
-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Numpy-discussion mailing list
Numpy-discussion@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/numpy-discussion

Reply via email to