18 #ifndef NUMPY_INTERFACE_H 19 #define NUMPY_INTERFACE_H 22 #include <numpy/arrayobject.h> 42 PyObject*
array_from_ptr(
void * ptr,
int dim, npy_intp* shape,
int np_type);
Matrix_real numpy2matrix_real(PyArrayObject *arr)
Call to create a PIC matrix_real representation of a numpy array.
PyObject * matrix_real_to_numpy(Matrix_real &mtx)
Call to make a numpy array from an instance of matrix class.
PyObject * array_from_ptr(void *ptr, int dim, npy_intp *shape, int np_type)
Call to make a numpy array from data stored via void pointer.
Base Class to store data of arrays and its properties.
Header file of complex array storage array with automatic and thread safe reference counting...
Class to store data of complex arrays and its properties.
Matrix numpy2matrix(PyArrayObject *arr)
Call to create a PIC matrix representation of a numpy array.
PyObject * matrix_int8_to_numpy(matrix_base< int8_t > &mtx)
Call to make a numpy array from an instance of matrix_base<int8_t> class.
void capsule_cleanup(PyObject *capsule)
Method to cleanup the memory when the python object becomes released.
PyObject * matrix_to_numpy(Matrix &mtx)
Call to make a numpy array from an instance of matrix class.
Class to store data of complex arrays and its properties.