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

A very simple kernel, used to add a vector. Not actually used by Encog, it is a simple test case to verify that OpenCL is working.
Inheritance: EncogKernel
Show file Open project: encog/encog-silverlight-core

Public Methods

Method Description
Add ( EncogCLDevice device, double inputA, double inputB ) : double[]

Perform the addition.

KernelVectorAdd ( EncogCLDevice device, int length ) : System

Construct a simple kernel to add two vectors.

Method Details

Add() public method

Perform the addition.
public Add ( EncogCLDevice device, double inputA, double inputB ) : double[]
device EncogCLDevice The OpenCL device to use.
inputA double The first vector to add.
inputB double The second vector to add.
return double[]

KernelVectorAdd() public method

Construct a simple kernel to add two vectors.
public KernelVectorAdd ( EncogCLDevice device, int length ) : System
device EncogCLDevice The device to use.
length int The length of the vector.
return System