numpy.prod : product(곱하기)
>>>numpy.prod([5, 2])
10
numpy.zeros : generating zero array
>>>numpy.zeros((3,2))
array([[0., 0.],
[0., 0.],
[0., 0.]])
'언어 > ㄴPython' 카테고리의 다른 글
[python] python script is executed by matlabprogram (0) | 2016.02.04 |
---|---|
[python] How to get matlab data file '.mat' in python (0) | 2016.01.25 |
[python] generating random array (0) | 2016.01.21 |
[python] what is assert (0) | 2016.01.21 |
[python] what is difference between numpy's 'array' and 'asarray' (0) | 2016.01.19 |