DotMP
|
Wrapper object for representing arrays on the GPU. More...
Package Functions | |
GPUArray (Buffer< T > buf) | |
Constructor. More... | |
Properties | |
ref T | this[int idx] [get] |
Overload for [] operator. More... | |
ref T | this[int i, int j] [get] |
Overload for [,] operator. More... | |
ref T | this[int i, int j, int k] [get] |
Overload for [,,] operator. More... | |
int | Length [get] |
Gets the length of the array. More... | |
Private Attributes | |
ArrayView1D< T, Stride1D.Dense > | view |
The ILGPU view for 1D arrays. More... | |
int | stride_y |
Stride of Y dimension. More... | |
int | stride_z |
Stride of Z dimension. More... | |
Wrapper object for representing arrays on the GPU.
T |
T | : | unmanaged |
|
inlinepackage |
Constructor.
buf | The Buffer to create an array from. |
|
private |
Stride of Y dimension.
|
private |
Stride of Z dimension.
|
private |
The ILGPU view for 1D arrays.
|
get |
Gets the length of the array.
|
get |
Overload for [,,] operator.
i | The first ID to index into. |
j | The second ID to index into. |
k | The third ID to index into. |
|
get |
Overload for [,] operator.
i | The first ID to index into. |
j | The second ID to index into. |
|
get |
Overload for [] operator.
idx | The ID to index into. |