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 2770 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 2816 of file NeuroNet.mqh.
◆ BufferFree()
bool CBufferDouble::BufferFree |
( |
void |
| ) |
|
|
virtual |
Method for deleting buffer from GPU.
Definition at line 2840 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 2884 of file NeuroNet.mqh.
◆ BufferRead()
bool CBufferDouble::BufferRead |
( |
void |
| ) |
|
|
virtual |
Method for reading buffer data from GPU.
Definition at line 2855 of file NeuroNet.mqh.
◆ BufferSet()
virtual bool CBufferDouble::BufferSet |
( |
int |
index | ) |
|
|
inlinevirtual |
Change buffer index number.
- Parameters
-
Definition at line 2784 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 4283 of file NeuroNet.mqh.
◆ BufferWrite()
bool CBufferDouble::BufferWrite |
( |
void |
| ) |
|
|
virtual |
Method for writing buffer data to GPU.
Definition at line 2874 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 2904 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 2895 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 2789 of file NeuroNet.mqh.
◆ m_myIndex
int CBufferDouble::m_myIndex |
|
protected |
◆ OpenCL
The documentation for this class was generated from the following file: