You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
13 lines
164 B
13 lines
164 B
import numpy as np
|
|
|
|
a = np.zeros((2, 3))
|
|
print("a =", a)
|
|
|
|
b = np.ones((2, 2))
|
|
print("b =", b)
|
|
|
|
c = np.full((3, 2), 3)
|
|
print("c =", c)
|
|
|
|
d = np.eye(2)
|
|
print("d =", d)
|