Numpy - set type



examples/numpy/set_type.py
import numpy as np

a = np.array([3, 4, 7], dtype='int8')
print(a)         # [3 4 7]
print(a * 3)     # [ 9 12 21]
print(a + 4)     # [ 7  8 11]
print(a.dtype)   # int8