blob: e6f2047ba44b814842b5747797b7a85bebd3ff33 (
plain)
1
2
3
4
5
6
7
8
9
10
|
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.logspace(0, 10, num=5, endpoint=False, dtype=dtype))
print(np.logspace(0, 10, num=5, endpoint=True, dtype=dtype))
|