import numpy as np

a=np.array([1,2,3])

print(a.shape)

print(a.dtype)

b=np.zeros((2,2))

print(b)

c=np.ones((1,1))

print(c)

d=np.eye(2)

print(d)

e=np.random.random((3,3,3))

print(e)

Advertisements

import numpy as np

a=np.array([1,2,3])

print(a.shape)

print(a.dtype)

b=np.zeros((2,2))

print(b)

c=np.ones((1,1))

print(c)

d=np.eye(2)

print(d)

e=np.random.random((3,3,3))

print(e)

Advertisements

%d bloggers like this: