#NEWLINE# def perform( self , node , inp , out_ ) : #NEWLINE# #INDENT# ( x , y , idx ) = inp #NEWLINE# ( out , ) = out_ #NEWLINE# if ( not self . inplace ) : #NEWLINE# #INDENT# x = x . copy ( ) #NEWLINE# #UNINDENT# if self . set_instead_of_inc : #NEWLINE# #INDENT# x [ idx ] = y #NEWLINE# #UNINDENT# else : #NEWLINE# #INDENT# increment = inplace_increment #NEWLINE# if ( increment is None ) : #NEWLINE# #INDENT# increment = self . inplace_increment1d_slow #NEWLINE# #UNINDENT# increment ( x , idx , y ) #NEWLINE# #UNINDENT# out [ 0 ] = x