Py5Vector.dtype#

Vector data type.

Examples#

1import numpy as np
2
3v1 = py5.Py5Vector(1, 2, 3)
4v2 = v1.astype(np.float16)
5
6print(repr(v1.dtype))
7# dtype('float64')
8print(repr(v2.dtype))
9# dtype('float16')

Description#

Vector data type. This will be one of np.float16, np.float32, np.float64, or np.float128.

Updated on January 16, 2022 16:51:21pm UTC