In [2]: import numpy as np Operation In [4]: test_a = np.array([[1,2,3], [4,5,6]], float) In [6]: test_a + test_a #matrix + matrix Out[6]: array([[ 2., 4., 6.], [ 8., 10., 12.]]) In [8]: test_a - test_a #matrix - matrix Out[8]: array([[0., 0., 0.], [0., 0., 0.]]) In [10]: test_a * test_a #element 곱 연산 Out[10]: array([[ 1., 4., 9.], [16., 25., 36.]]) In [13]: matrix_a = np.arange(1, 13).reshape(3..