Author: bugman Date: Tue Dec 11 11:13:41 2007 New Revision: 4177 URL: http://svn.gna.org/viewcvs/relax?rev=4177&view=rev Log: Created the align_tensor.svd() user function to do SVD on the loaded tensors. Modified: branches/N_state_model/prompt/align_tensor.py Modified: branches/N_state_model/prompt/align_tensor.py URL: http://svn.gna.org/viewcvs/relax/branches/N_state_model/prompt/align_tensor.py?rev=4177&r1=4176&r2=4177&view=diff ============================================================================== --- branches/N_state_model/prompt/align_tensor.py (original) +++ branches/N_state_model/prompt/align_tensor.py Tue Dec 11 11:13:41 2007 @@ -267,3 +267,23 @@ # Execute the functional code. align_tensor.init(tensor=tensor, params=params, scale=scale, angle_units=angle_units, param_types=param_types, errors=errors) + + + def svd(self): + """Function for calculating the singular values for all tensors. + + + Description + ~~~~~~~~~~~ + + This function will, using SVD, calculate the singular values of all tensors loaded for the + current data pipe. + """ + + # Function intro text. + if self.__relax__.interpreter.intro: + text = sys.ps3 + "align_tensor.svd()" + print text + + # Execute the functional code. + align_tensor.singular_vals()