#NEWLINE# def get_rmetric( self , mode_inv = 'svd' , return_svd = False ) : #NEWLINE# #INDENT# '\n        Compute the Reimannian Metric\n        ' #NEWLINE# if ( self . H is None ) : #NEWLINE# #INDENT# ( self . H , self . G , self . Hvv , self . Hsval ) = riemann_metric ( self . Y , self . L , self . mdimG , invert_h = True , mode_inv = mode_inv ) #NEWLINE# #UNINDENT# if ( self . G is None ) : #NEWLINE# #INDENT# ( self . G , self . Hvv , self . Hsvals , self . Gsvals ) = compute_G_from_H ( self . H , mode_inv = self . mode_inv ) #NEWLINE# #UNINDENT# if ( ( mode_inv is 'svd' ) and return_svd ) : #NEWLINE# #INDENT# return ( self . G , self . Hvv , return_svd . Hsvals , self . Gsvals ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . G