mailr4198 - /branches/N_state_model/generic_fns/align_tensor.py


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

Header


Content

Posted by edward on December 17, 2007 - 16:21:
Author: bugman
Date: Mon Dec 17 15:39:58 2007
New Revision: 4198

URL: http://svn.gna.org/viewcvs/relax?rev=4198&view=rev
Log:
The condition number is now calculated and the SVD values and condition 
number is now printed.


Modified:
    branches/N_state_model/generic_fns/align_tensor.py

Modified: branches/N_state_model/generic_fns/align_tensor.py
URL: 
http://svn.gna.org/viewcvs/relax/branches/N_state_model/generic_fns/align_tensor.py?rev=4198&r1=4197&r2=4198&view=diff
==============================================================================
--- branches/N_state_model/generic_fns/align_tensor.py (original)
+++ branches/N_state_model/generic_fns/align_tensor.py Mon Dec 17 15:39:58 
2007
@@ -1194,5 +1194,16 @@
 
     # Store the singular values.
     #cdp.align_tensor.singular_vals = s
-    print `s`
-
+
+    # Calculate and store the condition number.
+    cond_num = s[0] / s[4]
+    #cdp.align_tensor.cond_num = s[0] / s[4]
+
+    # Print out.
+    print "\nSingular values:"
+    print "\t" + `s[0]`
+    print "\t" + `s[1]`
+    print "\t" + `s[2]`
+    print "\t" + `s[3]`
+    print "\t" + `s[4]`
+    print "\nCondition number: " + `cond_num`




Related Messages


Powered by MHonArc, Updated Mon Dec 17 16:40:33 2007