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.
파일 보기 프로젝트 열기: encog/encog-silverlight-core 1 사용 예제들

공개 메소드들

메소드 설명
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