#NEWLINE# def __iter__( self ) : #NEWLINE# #INDENT# for i in itertools . count ( 1 ) : #NEWLINE# #INDENT# m = ( 1 - ( 2 ** ( ( - 1 ) - math . log ( ( np . floor_divide ( m , self . stretch ) + 1 ) , 2 ) ) ) ) #NEWLINE# ( yield min ( m , self . max_momentum ) )