Vector#
- classnvmath.
device. Vector(real_dtype,size)[source]# Vector type that can be used to represent vector numbers bothon host and device side. Host side representation uses numpy structureddtypes to represent the vector components, while device side representationuses custom numba types. This difference is necessary because devicefunctions expect alignment of the vector types to be the same as the size ofthe vector, which is not the case for numpy structured dtypes.
np_float16x2andnp_float16x4are the host sidedtypes andfloat16x2_typeandfloat16x4_typeare thedevice side types.Methods
Attributes
- dtype#
- make#
- real_dtype#
- size#
On this page