#NEWLINE# def test_broadcast( self ) : #NEWLINE# #INDENT# a = testing . shaped_arange ( ( 2 , 1 , 3 , 4 ) ) #NEWLINE# b = testing . shaped_arange ( ( 3 , 1 , 4 ) ) #NEWLINE# bc = cupy . broadcast ( self , b ) #NEWLINE# self . assertEqual ( ( 2 , 3 , 3 , 4 ) , bc . shape ) #NEWLINE# self . assertEqual ( ( ( ( 2 * 3 ) * 3 ) * 4 ) , bc . size ) #NEWLINE# self . assertEqual ( 4 , bc . nd )