2020-01-02から1日間の記事一覧
前回はこちら www.henjins-toolbox.techこの記事の続きです。今回は100 numpy exercisesのQ11-Q15を解いていきます。 11. Create a 3x3 identity matrix (3×3の単位行列を作れ) Z = np.eye(3,3) #Z = np.identity(3) print(Z) [[1. 0. 0.] [0. 1. 0.] [0. …
前回はこちら www.henjins-toolbox.techこの記事の続きです。今回は100 numpy exercisesのQ11-Q15を解いていきます。 11. Create a 3x3 identity matrix (3×3の単位行列を作れ) Z = np.eye(3,3) #Z = np.identity(3) print(Z) [[1. 0. 0.] [0. 1. 0.] [0. …