|
Template Numerical Library version\ main:7249e99
|
Specifies a subrange [begin, end) of a range [0, globalSize). More...
#include <TNL/Containers/Subrange.h>
Public Types | |
| using | IndexType = Index |
Public Member Functions | |
| __cuda_callable__ | Subrange (Index begin, Index end) |
| __cuda_callable__ Index | getBegin () const |
| Gets the begin of the subrange. | |
| __cuda_callable__ Index | getEnd () const |
| Gets the end of the subrange. | |
| __cuda_callable__ Index | getGlobalIndex (Index i) const |
| Gets global index for given local index. | |
| __cuda_callable__ Index | getLocalIndex (Index i) const |
| Gets local index for given global index. | |
| __cuda_callable__ Index | getSize () const |
| Gets number of local indices. | |
| __cuda_callable__ bool | isLocal (Index i) const |
| Checks if a global index is in the set of local indices. | |
| __cuda_callable__ bool | operator!= (const Subrange &other) const |
| __cuda_callable__ bool | operator== (const Subrange &other) const |
| __cuda_callable__ void | reset () |
| __cuda_callable__ void | setSubrange (Index begin, Index end) |
| Sets the local subrange and global range size. | |
Protected Attributes | |
| Index | begin = 0 |
| Index | end = 0 |
Specifies a subrange [begin, end) of a range [0, globalSize).