11 if(_import_array() < 0)
14 PyErr_SetString(PyExc_ImportError,
"numpy.core.multiarray failed to import");
20 return PyArray_TypeNumFromName(const_cast<char*>(type->tp_name));
23 #if defined _WIN32 || defined __CYGWIN__ 27 return PyArray_Check(py_obj);
32 return PyArray_SimpleNew(nd,shape,np_type);
35 PyObject*
call_PyArray_New(PyTypeObject * py_type_ptr,
int nd, npy_intp * shape,
int np_type,
void * data_ptr,
int options)
37 return PyArray_New(py_type_ptr,nd,shape,np_type,NULL,data_ptr,0,options,NULL);
40 int call_PyArray_ObjectType(PyObject * obj,
int val)
42 return PyArray_ObjectType(obj,val);
49 return PyArray_DescrFromType(typenum);
54 PyArray_InitArrFuncs(funcs);
59 return PyArray_RegisterDataType(dtype);
64 return PyArray_MinScalarType(arr);
69 return PyArray_RegisterCanCast(descr,totype,scalar);
#define call_PyArray_RegisterDataType(dtype)
#define call_PyArray_DescrFromType(typenum)
#define call_PyArray_MinScalarType(py_arr)
#define call_PyArray_New(py_type_ptr, nd, shape, np_type, data_ptr, options)
void EIGENPY_DLLAPI import_numpy()
#define call_PyArray_InitArrFuncs(funcs)
#define call_PyArray_SimpleNew
#define call_PyArray_Check(py_obj)
#define call_PyArray_RegisterCanCast(descr, totype, scalar)
int EIGENPY_DLLAPI PyArray_TypeNum(PyTypeObject *type)