Author: bugman Date: Wed Aug 19 10:45:56 2009 New Revision: 9338 URL: http://svn.gna.org/viewcvs/relax?rev=9338&view=rev Log: Bug fix for the kron_prod() function. The T23 rather than T14 transpose should now be used! And the resultant matrix is now returned to the correct, original rank-2 shape. Modified: 1.3/maths_fns/kronecker_product.py Modified: 1.3/maths_fns/kronecker_product.py URL: http://svn.gna.org/viewcvs/relax/1.3/maths_fns/kronecker_product.py?rev=9338&r1=9337&r2=9338&view=diff ============================================================================== --- 1.3/maths_fns/kronecker_product.py (original) +++ 1.3/maths_fns/kronecker_product.py Wed Aug 19 10:45:56 2009 @@ -43,10 +43,12 @@ C = outer(A, B) # Redefine the shape. + orig_shape = C.shape C.shape = A.shape + B.shape # Generate and return the Kronecker product matrix. - transpose_14(C) + transpose_23(C) + C.shape = orig_shape return C