#NEWLINE# def _line_func_2( self , x ) : #NEWLINE# #INDENT# self . fcount += 1 #NEWLINE# f = ( np . dot ( x , np . dot ( self . A , x ) ) + 1 ) #NEWLINE# df = np . dot ( ( self . A + self . A . T ) , df ) #NEWLINE# return ( f , df )