#NEWLINE# def test_elemmult_values_2( ) : #NEWLINE# #INDENT# npr . seed ( 2 ) #NEWLINE# for ii in xrange ( NUM_TRIALS ) : #NEWLINE# #INDENT# np_A = npr . randn ( 5 , 6 ) #NEWLINE# np_B = npr . randn ( 5 , 6 ) #NEWLINE# np_C = npr . randn ( 5 , 6 ) #NEWLINE# A = kayak . Parameter ( np_A ) #NEWLINE# B = kayak . Parameter ( np_B ) #NEWLINE# C = kayak . Parameter ( np_C ) #NEWLINE# D = kayak . ElemMult ( A , B , C ) #NEWLINE# assert ( D . shape == np_A . shape ) #NEWLINE# assert np . all ( close_float ( D . value , ( ( np_A * np_B ) * D ) ) )