All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Namespaces | Macros | Functions
PyUtils.cxx File Reference
#include "PyUtils.h"
#include "numpy/arrayobject.h"
#include "flashmatch/Base/FMWKInterface.h"
#include <cassert>
#include <iostream>

Go to the source code of this file.

Namespaces

 flashmatch
 

Macros

#define __OPT0FINDER_PYUTILS_CXX__
 
#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION
 

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 ::geoalgo::Trajectory &traj)
 
PyObjectflashmatch::as_ndarray (const Flash_t &flash)
 
template<class T >
void flashmatch::_copy_array (PyObject *arrayin, const std::vector< T > &cvec)
 copy array More...
 
template void flashmatch::_copy_array< unsigned short > (PyObject *arrayin, const std::vector< unsigned short > &cvec)
 
template void flashmatch::_copy_array< unsigned int > (PyObject *arrayin, const std::vector< unsigned int > &cvec)
 
template void flashmatch::_copy_array< short > (PyObject *arrayin, const std::vector< short > &cvec)
 
template void flashmatch::_copy_array< int > (PyObject *arrayin, const std::vector< int > &cvec)
 
template void flashmatch::_copy_array< long long > (PyObject *arrayin, const std::vector< long long > &cvec)
 
template void flashmatch::_copy_array< float > (PyObject *arrayin, const std::vector< float > &cvec)
 
template void flashmatch::_copy_array< double > (PyObject *arrayin, const std::vector< double > &cvec)
 
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<>
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::_as_ndarray (const std::vector< T > &data)
 convert vectors into np array More...
 
template PyObjectflashmatch::_as_ndarray< short > (const std::vector< short > &vec)
 
template PyObjectflashmatch::_as_ndarray< unsigned short > (const std::vector< unsigned short > &vec)
 
template PyObjectflashmatch::_as_ndarray< int > (const std::vector< int > &vec)
 
template PyObjectflashmatch::_as_ndarray< unsigned int > (const std::vector< unsigned int > &vec)
 
template PyObjectflashmatch::_as_ndarray< long long > (const std::vector< long long > &vec)
 
template PyObjectflashmatch::_as_ndarray< unsigned long long > (const std::vector< unsigned long long > &vec)
 
template PyObjectflashmatch::_as_ndarray< float > (const std::vector< float > &vec)
 
template PyObjectflashmatch::_as_ndarray< double > (const std::vector< double > &vec)
 
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 >
PyObjectflashmatch::numpy_array (std::vector< size_t > dims)
 
template PyObjectflashmatch::numpy_array< float > (std::vector< size_t >dims)
 

Macro Definition Documentation

#define __OPT0FINDER_PYUTILS_CXX__

Definition at line 2 of file PyUtils.cxx.

#define NPY_NO_DEPRECATED_API   NPY_1_7_API_VERSION

Definition at line 5 of file PyUtils.cxx.