Package mvpa :: Package clfs :: Package libsmlr :: Module ctypes_helper
[hide private]
[frames] | no frames]

Module ctypes_helper

source code

Helpers for wrapping C libraries with ctypes.
Functions [hide private]
 
extend_args(*args)
Turn ndarray arguments into dims and arrays.
source code
 
process_args(*args)
Turn ndarray arguments into dims and array pointers for calling a ctypes-wrapped function.
source code
 
get_argtypes(*args) source code
Variables [hide private]
  typemap = {<type 'numpy.int32'>: <class 'ctypes.c_long'>, <typ...

Imports: N, C, c_darray, c_larray, c_farray, c_iarray


Variables Details [hide private]

typemap

Value:
{<type 'numpy.int32'>: <class 'ctypes.c_long'>,
 <type 'numpy.int64'>: <class 'ctypes.c_longlong'>,
 <type 'numpy.float32'>: <class 'ctypes.c_float'>,
 <type 'numpy.float64'>: <class 'ctypes.c_double'>}