Functions
py_bindings Namespace Reference

A namespace containing functions for binding Python wrappers to their respective c++ classes and functions, as well as helper functions for these wrappers. More...

Functions

void bind_datavector ()
 
void bind_matrix ()
 
PyObject * to_numpy (const Matrix &matrix)
 Convert Matrix to a Numpy Array. Always creates a copy.
 
void bind_info_at_compile ()
 
void bind_h5file ()
 
void bind_h5dat ()
 
void bind_h5vol ()
 
template<typename T >
void bounds_check (const T &t, const size_t i)
 Check if a vector-like object access is in bounds. Throws std::runtime_error if it is not.
 
template<typename T >
void matrix_bounds_check (const T &matrix, const size_t row, const size_t column)
 Check if a matrix-like object access is in bounds. Throws std::runtime_error if it is not.
 
template<typename T >
std::vector< T > py_list_to_std_vector (const bp::object &iterable)
 Convert a bp::list of bp::object& to a std::vector.
 

Detailed Description

A namespace containing functions for binding Python wrappers to their respective c++ classes and functions, as well as helper functions for these wrappers.