#NEWLINE# def test_npm_call_implicit_output( self ) : #NEWLINE# #INDENT# duadd = self . nopython_dufunc ( pyuadd ) #NEWLINE# @ njit #NEWLINE# def npmadd( a0 , a1 ) : #NEWLINE# #INDENT# return duadd ( a0 , a1 ) #NEWLINE# #UNINDENT# X = np . linspace ( 0 , 1.9 , 20 ) #NEWLINE# X0 = X [ : 10 ] #NEWLINE# X1 = X [ 10 : ] #NEWLINE# out0 = npmadd ( X0 , X1 ) #NEWLINE# np . testing . assert_array_equal ( ( X0 + X1 ) , out0 ) #NEWLINE# Y0 = X0 . reshape ( ( 2 , 5 ) ) #NEWLINE# Y1 = X1 . reshape ( ( 2 , 5 ) ) #NEWLINE# out1 = npmadd ( Y0 , Y1 ) #NEWLINE# np . testing . assert_array_equal ( ( Y0 + Y1 ) , out1 ) #NEWLINE# Y2 = X1 [ : 5 ] #NEWLINE# out2 = npmadd ( Y0 , Y2 ) #NEWLINE# np . testing . assert_array_equal ( ( Y0 + Y2 ) , out2 ) #NEWLINE# out3 = npmadd ( 1.0 , 2.0 ) #NEWLINE# self . assertEqual ( out3 , 3.0 )