配列(Array)
390 ワード
Function
# 0
a = np.array([1,2,3]) //
a.shape //
a = np.zeros((2,2)) // 0 2x2
b = np.ones((1,2)) // 1 1x2
c = np.full((2,2), 7) // 7 2x2
d = np.eye(2) //Create a 2x2 identity matrix
e = np.random.random((2,2)) //Create an array filled with random values