Doxygen 1.9.1
Toolkit for Adaptive Stochastic Modeling and Non-Intrusive ApproximatioN: Tasmanian v8.2 (development)
TasGrid::Utils::Wrapper2D< T > Class Template Reference

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.
 

Detailed Description

template<typename T>
class TasGrid::Utils::Wrapper2D< T >

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.


The documentation for this class was generated from the following file: