All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Typedefs | Functions
PyUtils.h File Reference
#include <Python.h>
#include "numpy/arrayobject.h"
#include <vector>
#include "flashmatch/Base/OpT0FinderTypes.h"
#include "flashmatch/GeoAlgo/GeoTrajectory.h"

Go to the source code of this file.

Namespaces

 flashmatch
 

Macros

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 

Typedefs

typedef _object PyObject
 

Functions

void flashmatch::SetPyUtil ()
 Utility function: call one-time-only numpy module initialization (you don't have to call) More...
 
PyObjectflashmatch::as_ndarray (const QCluster_t &traj)
 
PyObjectflashmatch::as_ndarray (const Flash_t &flash)
 
PyObjectflashmatch::as_ndarray (const ::geoalgo::Trajectory &traj)
 
template<class T >
PyObjectflashmatch::_as_ndarray (const std::vector< T > &data)
 convert vectors into np array More...
 
PyObjectflashmatch::as_ndarray (const std::vector< short > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< unsigned short > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< int > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< unsigned int > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< long long > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< unsigned long long > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< float > &vec)
 
PyObjectflashmatch::as_ndarray (const std::vector< double > &vec)
 
template<class T >
void flashmatch::_copy_array (PyObject *arrayin, const std::vector< T > &cvec)
 copy array More...
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< unsigned short > &cvec)
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< unsigned int > &cvec)
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< short > &cvec)
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< int > &cvec)
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< long long > &cvec)
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< float > &cvec)
 
void flashmatch::copy_array (PyObject *arrayin, const std::vector< double > &cvec)
 
template<class T >
int flashmatch::ctype_to_numpy ()
 
template<>
int flashmatch::ctype_to_numpy< short > ()
 
template<>
int flashmatch::ctype_to_numpy< unsigned short > ()
 
template<>
int flashmatch::ctype_to_numpy< int > ()
 
template<>
int flashmatch::ctype_to_numpy< unsigned int > ()
 
template<>
int flashmatch::ctype_to_numpy< long long > ()
 
template<>
int flashmatch::ctype_to_numpy< unsigned long long > ()
 
template<>
int flashmatch::ctype_to_numpy< float > ()
 
template<>
int flashmatch::ctype_to_numpy< double > ()
 
template<class T >
PyObjectflashmatch::numpy_array (std::vector< size_t > dims)
 

Macro Definition Documentation

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION

Definition at line 8 of file PyUtils.h.

Typedef Documentation

typedef _object PyObject

Definition at line 4 of file PyUtils.h.