GPUMLib  0.2.2
GPU Machine Learning Library
rbfkernels.h
1 /*
2  Ricardo Quintas is an MSc Student at the University of Coimbra, Portugal
3  Copyright (C) 2009, 2010 Ricardo Quintas
4 
5  This file is part of GPUMLib.
6 
7  GPUMLib is free software: you can redistribute it and/or modify
8  it under the terms of the GNU General Public License as published by
9  the Free Software Foundation, either version 3 of the License, or
10  (at your option) any later version.
11 
12  This program is distributed in the hope that it will be useful,
13  but WITHOUT ANY WARRANTY; without even the implied warranty of
14  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
15  GNU General Public License for more details.
16 
17  You should have received a copy of the GNU General Public License
18  along with this program. If not, see <http://www.gnu.org/licenses/>.
19 */
20 
23 
24 #ifndef RBFkernels_h
25 #define RBFkernels_h
26 
27 #include "../common/CudaDefinitions.h"
28 #include "../memory/DeviceArray.h"
29 #include "../memory/DeviceMatrix.h"
30 
31 /*Define functions to call CUDA kernels in C program*/
32 
39 extern "C" void KernelAdjustWidths(cudafloat *Distance, int distance_height, int distance_width, int rneighbours, float *widths);
40 
49 extern "C" void KernelCalculateDistance(cudafloat *d_C, cudafloat* d_A, cudafloat* d_B,int uiWA,int uiWB, int uiWC, int uiHC);
50 
61 extern "C" void KernelActivationMatrix(cudafloat *d_C, cudafloat* d_A, cudafloat* d_B,int uiWA,int uiWB, int uiWC, int uiHC, float scalingfactor, float* c_width);
62 
68 extern "C" void KernelSigmaInverse(float *Output, int output_width, int output_height, cudafloat *S);
69 #endif
70 
71 //! @}
void KernelActivationMatrix(cudafloat *d_C, cudafloat *d_A, cudafloat *d_B, int uiWA, int uiWB, int uiWC, int uiHC, float scalingfactor, float *c_width)
Definition: RBFKernels.cu:314
void KernelAdjustWidths(cudafloat *Distance, int distance_height, int distance_width, int rneighbours, float *widths)
Definition: RBFKernels.cu:59
void KernelCalculateDistance(cudafloat *d_C, cudafloat *d_A, cudafloat *d_B, int uiWA, int uiWB, int uiWC, int uiHC)
Definition: RBFKernels.cu:203
void KernelSigmaInverse(float *Output, int output_width, int output_height, cudafloat *S)
Definition: RANKernels.cu:217
float cudafloat