#NEWLINE# def linearize( self , params , unknowns , resids ) : #NEWLINE# #INDENT# 'Analytical derivatives.' #NEWLINE# J = { #NEWLINE# #INDENT# #NEWLINE# #UNINDENT# } #NEWLINE# J [ ( 'y' , 'x' ) ] = np . array ( [ 1.0 ] ) #NEWLINE# J [ ( 'y' , 'z' ) ] = np . array ( [ 2.0 ] ) #NEWLINE# J [ ( 'z' , 'z' ) ] = np . array ( [ ( params [ 'x' ] + 1.0 ) ] ) #NEWLINE# J [ ( 'z' , 'x' ) ] = np . array ( [ params [ 'z' ] ] ) #NEWLINE# return J