[ ][ [ ]note that above is duplicated row-wise and column-wise broadcasting also applies to the matrix-wise operator @as illustrated below herethe matrix is duplicated across the third dimension resulting in the two matrix multiplications ## and np arange ( reshape ( , , np arange ( reshape ( , print ( @ [[ ][[ [ ]]functions such as summeanand std can also be executed as methods of an ndarray instance the argument axis can be passed to specify along which dimension the function is applied by default axis=none np array range ( )reshape ( , print ( sum(axis = )summing over rows gives column totals [ random numbers one of the sub-modules in numpy is random it contains many functions for random variable generation import numpy as np np random seed ( set the seed for the random number generator np random random (uniform ( , np random randint ( , discrete uniform , np random randn ( array of four standard normals print ( , ,'\ ', - - for more information on random variable generation in numpysee