C# Класс Encog.Engine.Opencl.Kernels.EncogKernel

Defines a basic OpenCL kernal, as used by Encog. Contains the kernal source c and a compiled program/kernal.
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
Compile ( ) : void

Compile the kernel with no preprocessor defines.

Compile ( String>.IDictionary options ) : void

Compile the kernel with a map of preprocessor defines, a collection of name-value pairs.

CreateArrayReadOnly ( float array ) : ComputeBuffer

Create an array buffer that is read only for floats.

CreateArrayReadOnly ( int array ) : ComputeBuffer

Create an array buffer that is read only for ints.

CreateFloatArrayWriteOnly ( int length ) : ComputeBuffer

Create an array buffer that is write only.

EncogKernel ( EncogCLDevice device, String sourceName, String kernelName ) : System

Create an Encog OpenCL kernel. The Kernel will be loaded from an embedded resource.

PrepareKernel ( ) : void

Called internally to prepare to execute a kernel.

Release ( ) : void

Release this kernel.

Описание методов

Compile() публичный Метод

Compile the kernel with no preprocessor defines.
public Compile ( ) : void
Результат void

Compile() публичный Метод

Compile the kernel with a map of preprocessor defines, a collection of name-value pairs.
public Compile ( String>.IDictionary options ) : void
options String>.IDictionary A map of preprocessor defines.
Результат void

CreateArrayReadOnly() публичный Метод

Create an array buffer that is read only for floats.
public CreateArrayReadOnly ( float array ) : ComputeBuffer
array float The array to base on.
Результат ComputeBuffer

CreateArrayReadOnly() публичный Метод

Create an array buffer that is read only for ints.
public CreateArrayReadOnly ( int array ) : ComputeBuffer
array int The array to base on.
Результат ComputeBuffer

CreateFloatArrayWriteOnly() публичный Метод

Create an array buffer that is write only.
public CreateFloatArrayWriteOnly ( int length ) : ComputeBuffer
length int The length of the buffer.
Результат ComputeBuffer

EncogKernel() публичный Метод

Create an Encog OpenCL kernel. The Kernel will be loaded from an embedded resource.
public EncogKernel ( EncogCLDevice device, String sourceName, String kernelName ) : System
device EncogCLDevice The OpenCL device to use.
sourceName String The name of the kernel, from an embedded resource.
kernelName String The name of the function, in the kernel, called to start thekernel.
Результат System

PrepareKernel() публичный Метод

Called internally to prepare to execute a kernel.
public PrepareKernel ( ) : void
Результат void

Release() публичный Метод

Release this kernel.
public Release ( ) : void
Результат void