🐍Python

    [Numpy] Numpy 연습문제 11~20

    11. Create a 3x3 identity matrix -> Z = np.eye(3,3) Z A : array([[1., 0., 0.], [0., 1., 0.], [0., 0., 1.]]) 해설 : np.eye를 통해 대각선 행렬성분이 1인 Identity matrix를 생성할 수 있다. (A,B)로 A행 B열로 구성할 수 있다. 12. Create a 3x3x3 array with random values-> Z = np.random.random((3,3,3)) Z A : array([[[0.9849039 , 0.44041333, 0.41412264], [0.13367628, 0.99776952, 0.58991017], [0.01979863, 0.41352766, 0.00831818]], [[0.5..

    [Numpy] Numpy 연습문제 1~10

    1. Import the numpy package under the name-> import numpy as np 2. Print the numpy version and the configuration -> print(np.__version__) 3. Create a null vector of size 10-> z= np.zeros(10) print(z) A : [0. 0. 0. 0. 0. 0. 0. 0. 0. 0.] 해설 : np.zeros를 통해 N개의 0으로 채워진 array를 구성할 수 있다. 4. How to find the memory size of any array-> z = np.zeros((10,10)) print("%d bytes" % (z.size* z.itemsize)) A : 80..

    Numpy Exercise 100

    https://github.com/rougier/numpy-100 Numpy Exercise 100 문제 정리입니다