Class of OpenCL buffer data. Used for transfer data from CPU to GPU and back.
More...
Class of OpenCL buffer data. Used for transfer data from CPU to GPU and back.
Detailed description on the link.
Definition at line 2773 of file NeuroNet.mqh.
◆ CBufferDouble()
CBufferDouble::CBufferDouble |
( |
void |
| ) |
|
◆ ~CBufferDouble()
CBufferDouble::~CBufferDouble |
( |
void |
| ) |
|
◆ BufferCreate()
bool CBufferDouble::BufferCreate |
( |
COpenCLMy * |
opencl | ) |
|
|
virtual |
Method for creating new buffer.
- Parameters
-
Definition at line 2819 of file NeuroNet.mqh.
◆ BufferFree()
bool CBufferDouble::BufferFree |
( |
void |
| ) |
|
|
virtual |
Method for deleting buffer from GPU.
Definition at line 2843 of file NeuroNet.mqh.
◆ BufferInit()
bool CBufferDouble::BufferInit |
( |
uint |
count, |
|
|
double |
value |
|
) |
| |
|
virtual |
Method for buffer initialization.
- Parameters
-
[in] | count | Number of items |
[in] | value | Initialization value |
Definition at line 2887 of file NeuroNet.mqh.
◆ BufferRead()
bool CBufferDouble::BufferRead |
( |
void |
| ) |
|
|
virtual |
Method for reading buffer data from GPU.
Definition at line 2858 of file NeuroNet.mqh.
◆ BufferSet()
virtual bool CBufferDouble::BufferSet |
( |
int |
index | ) |
|
|
inlinevirtual |
Change buffer index number.
- Parameters
-
Definition at line 2787 of file NeuroNet.mqh.
◆ BufferToCSV()
void CBufferDouble::BufferToCSV |
( |
const string |
file_name | ) |
|
|
virtual |
Save buffer data to CSV file.
- Parameters
-
[in] | file_name | File name to write data |
Definition at line 4286 of file NeuroNet.mqh.
◆ BufferWrite()
bool CBufferDouble::BufferWrite |
( |
void |
| ) |
|
|
virtual |
Method for writing buffer data to GPU.
Definition at line 2877 of file NeuroNet.mqh.
◆ GetData() [1/2]
int CBufferDouble::GetData |
( |
CArrayDouble * |
values | ) |
|
|
virtual |
Read data from buffer to array.
- Parameters
-
[out] | values | Array to read data |
Definition at line 2907 of file NeuroNet.mqh.
◆ GetData() [2/2]
int CBufferDouble::GetData |
( |
double & |
values[] | ) |
|
|
virtual |
Read data from buffer to array.
- Parameters
-
[out] | values | Array to read data |
Definition at line 2898 of file NeuroNet.mqh.
◆ GetIndex()
virtual int CBufferDouble::GetIndex |
( |
void |
| ) |
|
|
inlinevirtual |
◆ Type()
virtual int CBufferDouble::Type |
( |
void |
| ) |
const |
|
inlinevirtual |
Identificator of class.
- Returns
- Type of class
Definition at line 2792 of file NeuroNet.mqh.
◆ m_myIndex
int CBufferDouble::m_myIndex |
|
protected |
◆ OpenCL
The documentation for this class was generated from the following file: