[파이썬 Numpy] - 배열 수학
배열 수학(Array math) >>> import numpy as np >>> x = np.array([[1,2],[3,4]], dtype = np.float64) >>> y = np.array([[5,6],[7,8]], dtype = np.float64) # 덧셈 연산>>> print x + y [[ 6. 8.] [ 10. 12.]] >>> print np.add(x,y) [[ 6. 8.] [ 10. 12.]] # 뺄셈연산>>> print x - y[[-4. -4.] [-4. -4.]] >>> print np.subtract(x,y)[[-4. -4.] [-4. -4.]] # 곱셈 연산>>> print x * y[[ 5. 12.] [ 21. 32.]] >>> print np.multiply(x,y)[[..
더보기