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)