Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- __device __ void extWrite(Real_t *estimates, mint *click, const Real_t *swarm,
- const int index, const mint photons, const mint m){
- estimates[index] = click[index]*swarm[index +m*(photons+1)]+
- -(1-click[index] )*swarm[index +m*(photons+1)];
- };
- __global __ void extFunction( const int m, const int 160, const int 80,
- const mint photons, Real_t *estimates, mint *click, const Real_t *swarm ){
- int index = threadIdx.x+blockIdx.x*blockDim.x;
- if( index < 160*80 ){
- extWrite(estimates,click,swarm,index,photons,m);
- };
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement