C# Class Encog.Engine.Opencl.Kernels.EncogKernel

Defines a basic OpenCL kernal, as used by Encog. Contains the kernal source c and a compiled program/kernal.
Afficher le fichier Open project: encog/encog-silverlight-core Class Usage Examples

Méthodes publiques

Méthode Description
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.

Method Details

Compile() public méthode

Compile the kernel with no preprocessor defines.
public Compile ( ) : void
Résultat void

Compile() public méthode

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.
Résultat void

CreateArrayReadOnly() public méthode

Create an array buffer that is read only for floats.
public CreateArrayReadOnly ( float array ) : ComputeBuffer
array float The array to base on.
Résultat ComputeBuffer

CreateArrayReadOnly() public méthode

Create an array buffer that is read only for ints.
public CreateArrayReadOnly ( int array ) : ComputeBuffer
array int The array to base on.
Résultat ComputeBuffer

CreateFloatArrayWriteOnly() public méthode

Create an array buffer that is write only.
public CreateFloatArrayWriteOnly ( int length ) : ComputeBuffer
length int The length of the buffer.
Résultat ComputeBuffer

EncogKernel() public méthode

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.
Résultat System

PrepareKernel() public méthode

Called internally to prepare to execute a kernel.
public PrepareKernel ( ) : void
Résultat void

Release() public méthode

Release this kernel.
public Release ( ) : void
Résultat void