All Downloads are FREE. Search and download functionalities are using the official Maven repository.

kernels.complex.double.sigmoid.cu Maven / Gradle / Ivy

There is a newer version: 0.4-rc3.7
Show newest version
extern "C"
#include 
#include 

__global__ void sigmoid_double(int n,int idx,double *dy,int incy,double *result) {
        for (int i = blockIdx.x * blockDim.x + threadIdx.x; i < n; i += blockDim.x * gridDim.x) {
                       if(i >= idx && i % incy == 0)
                           result[i] =  1.0 / (1.0 + exp(-dy[i]));
         }

 }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy