katsdpimager.types module¶
Utilities for converting type names between numpy and C
-
katsdpimager.types.complex_to_real(dtype)¶ Convert a complex type to its real equivalent
-
katsdpimager.types.dtype_to_ctype(dtype)¶ Convert a numpy dtype to a C type suitable for CUDA or OpenCL.
Only float32/64, complex64/128 and int32/uint32 are supported for now.
-
katsdpimager.types.real_to_complex(dtype)¶ Convert a real type to its complex equivalent