#NEWLINE# def gradients_X( self , dL_dK , X , X2 = None ) : #NEWLINE# #INDENT# '\n        Given the derivative of the objective wrt K (dL_dK), compute the derivative wrt X\n        ' #NEWLINE# if config . getboolean ( 'cython' , 'working' ) : #NEWLINE# #INDENT# return self . _gradients_X_cython ( dL_dK , X , X2 ) #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# return self . _gradients_X_pure ( dL_dK , dL_dK , X2 )