Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ cumulative_sum2()

__kernel void stan::math::opencl_kernels::cumulative_sum2 ( __global SCAL *  data,
int  size 
)

Second kernel of the cumulative sum implementation.

Calculates prefix sum of given data in place using a single work group (must be run with a single work group).

Parameters
[in,out]datadata to calculate cumulative sum of
sizesize number of elements in the input

Definition at line 75 of file cumulative_sum.hpp.