mailr21111 - /trunk/lib/linear_algebra/matrix_exponential.py


Others Months | Index by Date | Thread Index
>>   [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Header


Content

Posted by edward on October 15, 2013 - 13:20:
Author: bugman
Date: Tue Oct 15 13:20:25 2013
New Revision: 21111

URL: http://svn.gna.org/viewcvs/relax?rev=21111&view=rev
Log:
Fix for the new lib.linear_algebra.matrix_exponential.matrix_exponential() 
function.

This function now returns a numpy array type rather than matrix type.


Modified:
    trunk/lib/linear_algebra/matrix_exponential.py

Modified: trunk/lib/linear_algebra/matrix_exponential.py
URL: 
http://svn.gna.org/viewcvs/relax/trunk/lib/linear_algebra/matrix_exponential.py?rev=21111&r1=21110&r2=21111&view=diff
==============================================================================
--- trunk/lib/linear_algebra/matrix_exponential.py (original)
+++ trunk/lib/linear_algebra/matrix_exponential.py Tue Oct 15 13:20:25 2013
@@ -23,7 +23,7 @@
 """Module for the calculation of the matrix exponential."""
 
 # Python module imports.
-from numpy import diag, dot, exp, iscomplex
+from numpy import array, diag, dot, exp, iscomplex
 from numpy.linalg import eig, inv
 
 # relax module imports.
@@ -50,8 +50,8 @@
 
     # Return the complex matrix.
     if complex_flag:
-        return eA
+        return array(eA)
 
     # Return only the real part.
     else:
-        return eA.real
+        return array(eA.real)




Related Messages


Powered by MHonArc, Updated Tue Oct 15 13:40:02 2013