Python NumPy 10 ( C, ++, Matlab Fortran 10 ) :
C, ++ Fortran, Cython. , , snipplets . ++ STL ( Boost, ).
API NumPy C. PyArrayObject ( NumPy, C) , . PyArray_TYPE() PyArrayObject *. numpy.float64 NPY_FLOAT64, numpy.float32, NPY_FLOAT32 .. C ++ typedefs, C ++: PyArray_TYPE (x) == NPY_FLOAT64, C ++ - npy_float64. , C ++, NumPy, .
switch PyArray_TYPE (x), NPY_FLOAT64, NPY_FLOAT32 .. ++ . , , .
http://docs.scipy.org/doc/numpy/reference/c-api.html
Cython C ++ API Python C, , . , " " ++, Cython - Python. ++ Cython ++. , Cython - C Python, ++, ++ - , .
, : , , . C ++, Cython, numpy.ndarray - PyArrayObject * dtype. switch.