kernels.complex.double.exp.cu Maven / Gradle / Ivy
extern "C"
#include
#include
__global__ void exp_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] = exp(dy[i]);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy