#NEWLINE# def test_nested_value_1( ) : #NEWLINE# #INDENT# npr . seed ( 9 ) #NEWLINE# for ii in xrange ( NUM_TRIALS ) : #NEWLINE# #INDENT# npX = npr . randn ( 10 , 20 ) #NEWLINE# X = kayak . Parameter ( npX ) #NEWLINE# Y = kayak . MatSum ( X , axis = 0 ) #NEWLINE# Z = kayak . MatSum ( Y ) #NEWLINE# assert np . all ( close_float ( Y . value , np . sum ( npX , axis = 0 ) ) ) #NEWLINE# assert close_float ( Z . value , np . sum ( npX ) )