ndX = PyArray_NDIM(X)
shapeX = PyArray_SHAPE(X)
dtype = PyArray_DescrFromType(NPY_DOUBLE)
iter = NpyIter_New(X, NPY_ITER_READONLY, NPY_KEEPORDER, NPY_NO_CASTING, dtype)
iternext = NpyIter_GetIterNext(iter, NULL)
typecasting PyArrayObject data to a C array