Demo in form of a python module in here. Also used for sanity testing. More...
Go to the source code of this file.
Functions | |
template<class T > | |
void | print (const T &x, std::ostream &os) |
template<> | |
void | print< char > (const char &x, std::ostream &os) |
template<> | |
void | print< PyObject * > (PyObject *const &x, std::ostream &os) |
template<class T > | |
void | printElements (const np::arrayt< T > &a, int dim, int *indices) |
template<class T > | |
void | handleType (np::arraytbase arr, bool printContents) |
void | printArrayInfo (const np::arraytbase &arr) |
void | printArray (nm::array pyarr, bool printContents) |
template<class T > | |
void | printConvertedArray (np::arrayt< T > arr) |
template<class T > | |
std::string | scalar_to_str (const T &x) |
template<> | |
std::string | scalar_to_str (const char &x) |
np::arraytbase | ReturnedFromCPP () |
py::object | SumArrayT (np::arrayt< float > arr1, np::arrayt< float > arr2) |
py::object | SumNumericArray (nm::array arr1, nm::array arr2) |
BOOST_PYTHON_MODULE (libdemo) | |
Demo in form of a python module in here. Also used for sanity testing.
Definition in file demo.cpp.