Array¶
-
namespace
ndarray
¶ -
class
Array
¶ - #include <array.h>
Public Functions
-
Array
()¶
-
~Array
()¶
-
Array
(const Shape &shape, double *hdata = nullptr, double *ddata = nullptr, const bool onCuda = true)¶ Initialize an array.
- Parameters
shape
: vector of shape.hdata
: double pointer reference of host data. default nullprtddata
: double pointer reference of device data. default nullprtongpu
: boolen variable for on gpu or on cpu.
-
void
updateStrides
()¶
-
void
computeSize
()¶
-
void
unMappedToCuda
()¶
-
void
mapDeviceDataToHost
()¶
-
double *
hostData
()¶
-
void
setHostData
(double *hdata)¶
-
double *
deviceData
() const¶
-
void
setDeviceData
(double *ddata)¶
-
size_t
rank
() const¶
-
bool
isHostData
() const¶
-
void
setIsHostData
(bool isHostData)¶
-
bool
isDeviceData
() const¶
-
void
setIsDeviceData
(bool isDeviceData)¶
-
size_t
size
() const¶
-
-
class