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`