On Mon, 14 Aug 2006 21:58:50 +0200 Sven Schreiber <[EMAIL PROTECTED]> wrote: > Hi, > > Satya Upadhya schrieb: > >>>>> from Numeric import * > > Well this list is about the numpy package, but anyway... > >> 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. > > afaik, in numpy terms if you are dealing with a numpy >array, such > functions are elementwise by design. > In contrast, if you have a numpy matrix (a special >subclass of the array > class) --constructed e.g. as mat(eye(3))-- then power is >redefined to be > the matrix power; at least that's the rule for the ** >operator, not 100% > sure if for the explicit power() function as well, but I >suppose so. > >> >> 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) > > I don't understand what you want, how do you take the >log of a matrix > mathematically? > > -Sven > > ------------------------------------------------------------------------- > 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
Help on function logm in module scipy.linalg.matfuncs: logm(A, disp=1) Matrix logarithm, inverse of expm. Nils ------------------------------------------------------------------------- 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