1 #ifndef __OPT0FINDER_PYUTILS_H__
2 #define __OPT0FINDER_PYUTILS_H__
8 #define NPY_NO_DEPRECATED_API NPY_1_7_API_VERSION
10 #include "numpy/arrayobject.h"
14 namespace flashmatch {
void SetPyUtil()
Utility function: call one-time-only numpy module initialization (you don't have to call) ...
PyObject * _as_ndarray(const std::vector< T > &vec)
convert vectors into np array
int ctype_to_numpy< short >()
int ctype_to_numpy< float >()
void copy_array(PyObject *arrayin, const std::vector< unsigned short > &cvec)
int ctype_to_numpy< unsigned long long >()
PyObject * as_ndarray(const QCluster_t &traj)
int ctype_to_numpy< unsigned int >()
int ctype_to_numpy< long long >()
int ctype_to_numpy< double >()
void _copy_array(PyObject *arrayin, const std::vector< T > &cvec)
copy array
PyObject * numpy_array(std::vector< size_t > dims)
int ctype_to_numpy< unsigned short >()
int ctype_to_numpy< int >()