python bindings for template MHO_TableContainer objects This extension which allows us to present the contents of the XTableType to python as a numpy array + python list objects for the axes. Changes made to the contents of numpy array will be exposed to the c++ side. However, no changes to the size/shape or axes of the array are supported.
More...
#include <MHO_PyTableContainer.hh>
template<typename XTableType>
class hops::MHO_PyTableContainer< XTableType >
python bindings for template MHO_TableContainer objects This extension which allows us to present the contents of the XTableType to python as a numpy array + python list objects for the axes. Changes made to the contents of numpy array will be exposed to the c++ side. However, no changes to the size/shape or axes of the array are supported.
- Author
- J. Barrett - barre.nosp@m.ttj@.nosp@m.mit.e.nosp@m.du
- Date
- Thu Sep 23 16:03:48 2021 -0400
◆ MHO_PyTableContainer()
template<typename XTableType >
◆ ~MHO_PyTableContainer()
template<typename XTableType >
◆ GetClassName()
template<typename XTableType >
◆ GetCoordinateAxis()
template<typename XTableType >
- return the N-th axis as a python list object this conversion is NOT copy-free, but we get the same return type for all axis types
◆ GetCoordinateAxisMetaData()
template<typename XTableType >
◆ GetDimension()
template<typename XTableType >
◆ GetMetaData()
template<typename XTableType >
◆ GetNumpyArray()
template<typename XTableType >
*return the ND-array data block as a numpy array this transfer is copy-free
◆ GetRank()
template<typename XTableType >
◆ SetCoordinateAxisMetaData()
template<typename XTableType >
◆ SetCoordinateLabel()
template<typename XTableType >
void hops::MHO_PyTableContainer< XTableType >::SetCoordinateLabel |
( |
std::size_t |
axis_index, |
|
|
std::size_t |
label_index, |
|
|
py::object |
label |
|
) |
| |
|
inline |
◆ SetMetaData()
template<typename XTableType >
The documentation for this class was generated from the following file: