|
DNDSR 0.1.0.dev1+gcd065ad
Distributed Numeric Data Structure for CFV
|
CRTP base implementing the unified-index accessors shared by ArrayPairDeviceView and ArrayPairDeviceViewConst. More...
#include <ArrayPair.hpp>
Public Member Functions | |
| DNDS_DEVICE_CALLABLE index | Size () const |
| Combined father + son row count. | |
| DNDS_DEVICE_CALLABLE auto | RowSize () const |
| Uniform row width (delegates to father; father/son share it). | |
| DNDS_DEVICE_CALLABLE auto | RowSize (index i) const |
| Per-row width in the combined address space. | |
| DNDS_DEVICE_CALLABLE auto | operator[] (index i) const |
Row pointer for index i in the combined address space (const). | |
| DNDS_DEVICE_CALLABLE auto | operator[] (index i) |
Row pointer for index i (mutable). | |
| template<class... TOthers> | |
| DNDS_DEVICE_CALLABLE decltype(auto) | operator() (index i, TOthers... aOthers) |
N-ary element access in the combined address space (mutable). Forwards extra arguments to the underlying operator(). | |
| template<class... TOthers> | |
| DNDS_DEVICE_CALLABLE decltype(auto) | operator() (index i, TOthers... aOthers) const |
| N-ary element access (const). | |
CRTP base implementing the unified-index accessors shared by ArrayPairDeviceView and ArrayPairDeviceViewConst.
Indices in [0, father.Size()) map to the owned-side view; indices in [father.Size(), father.Size() + son.Size()) map to the ghost-side view with an offset subtraction. This lets stencil loops treat the father/son pair as one contiguous array. Device-callable.
Definition at line 30 of file ArrayPair.hpp.
|
inline |
N-ary element access in the combined address space (mutable). Forwards extra arguments to the underlying operator().
Definition at line 79 of file ArrayPair.hpp.
|
inline |
N-ary element access (const).
Definition at line 90 of file ArrayPair.hpp.
|
inline |
Row pointer for index i (mutable).
Definition at line 67 of file ArrayPair.hpp.
|
inline |
Row pointer for index i in the combined address space (const).
Definition at line 57 of file ArrayPair.hpp.
|
inline |
Uniform row width (delegates to father; father/son share it).
Definition at line 40 of file ArrayPair.hpp.
|
inline |
Per-row width in the combined address space.
Definition at line 47 of file ArrayPair.hpp.
|
inline |
Combined father + son row count.
Definition at line 33 of file ArrayPair.hpp.