Doxygen
1.9.1
|
Wraps around a C-style of an array and mimics 2D data-structure. More...
#include <tsgUtils.hpp>
Public Member Functions | |
Wrapper2D (int stride_size, T *raw_data) | |
Wrap around raw_data with the given stride_size. | |
~Wrapper2D () | |
Default destructor, raw_data has to be deleted elsewhere. | |
T * | getStrip (int i) |
Return a pointer to the i-th strip. | |
Wraps around a C-style of an array and mimics 2D data-structure.
The Tasmanian external API accepts C-style arrays, which simplifies interfacing with other languages such as C, Python and Fortran. The arrays represent 2D data in strips with specific stride, the Wrapper2D() takes such an array and logically divides it so strips can be accessed without clumsy double-index notation.