DotMP
Static Public Member Functions | Package Functions | Private Attributes | List of all members
DotMP.GPU.Index Struct Reference

Represents an index passed as the first index argument. More...

Static Public Member Functions

static implicit operator int (Index i)
 Calculates the index and caches for future use. More...
 

Package Functions

 Index (Buffer< int > buf)
 Constructor. More...
 
void AddOffset (int offset)
 Adds an offset in preperation for a followup kernel. More...
 

Private Attributes

ArrayView1D< int, Stride1D.Dense > lookup
 Lookup table for indices. More...
 
int offset
 Offset for followup kernels. More...
 
int idx
 Cached index. More...
 

Detailed Description

Represents an index passed as the first index argument.

Constructor & Destructor Documentation

◆ Index()

DotMP.GPU.Index.Index ( Buffer< int >  buf)
inlinepackage

Constructor.

Parameters
bufBuffer representing the indices.

Member Function Documentation

◆ AddOffset()

void DotMP.GPU.Index.AddOffset ( int  offset)
inlinepackage

Adds an offset in preperation for a followup kernel.

Parameters
offsetThe offset to set.

◆ operator int()

static implicit DotMP.GPU.Index.operator int ( Index  i)
inlinestatic

Calculates the index and caches for future use.

Parameters
iThe Index object to cast to int.

Member Data Documentation

◆ idx

int DotMP.GPU.Index.idx
private

Cached index.

◆ lookup

ArrayView1D<int, Stride1D.Dense> DotMP.GPU.Index.lookup
private

Lookup table for indices.

◆ offset

int DotMP.GPU.Index.offset
private

Offset for followup kernels.


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