9 lines
No EOL
194 B
Python
9 lines
No EOL
194 B
Python
try:
|
|
from ulab import numpy as np
|
|
except:
|
|
import numpy as np
|
|
|
|
dtypes = (np.uint8, np.int8, np.uint16, np.int16, np.float)
|
|
|
|
for dtype in dtypes:
|
|
print(np.full((2, 4), 3, dtype=dtype)) |