pip install numpy
import numpy as np
=np.array([[0,1,2,3,4],
A5,6,7,8,9],
[10,11,12,13,14]])
[print(A)
A.shape
A.ndim
A.dtype.name
A.sizetype(A)
= np.arange(9).reshape(3, 3)
B print(B)
B.shape
=np.array([1, 2, 3, 4])
myvecprint(myvec)
myvec.size# note second dimension is empty
myvec.shape
=np.array([1, 2, 3, 4],dtype=np.int8)
myvec
print(B)
=B.reshape(1,9)
B
B.shape=B.reshape(9,)
B
B.shape
=np.zeros((3,4))
Zprint(Z)
+1
Z*0
A**2
A@ np.transpose(A)
A
0,]
A[0]
A[0:1,]
A[0:2,-1] A[