def get_rmetric( self, mode_inv = '<STR_LIT>', return_svd = False ):
if self.H is None:<EOL><INDENT>self.H, self.G, self.Hvv, self.Hsval = riemann_metric(self.Y, self.L, self.mdimG, invert_h = True, mode_inv = mode_inv)<EOL><DEDENT>if self.G is None:<EOL><INDENT>self.G, self.Hvv, self.Hsvals,  self.Gsvals = compute_G_from_H( self.H, mode_inv = self.mode_inv )<EOL><DEDENT>if mode_inv is '<STR_LIT>' and return_svd:<EOL><INDENT>return self.G, self.Hvv, self.Hsvals, self.Gsvals<EOL><DEDENT>else:<EOL><INDENT>return self.G<EOL><DEDENT>
Compute the Reimannian Metric