#NEWLINE# def dmp_clear_denoms( self , f , convert = False ) : #NEWLINE# #INDENT# ( c , F ) = dmp_clear_denoms ( self . to_dense ( f ) , ( self . ngens - 1 ) , self . domain , convert = convert ) #NEWLINE# if convert : #NEWLINE# #INDENT# ring = self . clone ( domain = self . domain . get_ring ( ) ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# ring = self #NEWLINE# #UNINDENT# return ( c , ring . from_dense ( F ) )