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

◆ unpack()

__kernel void stan::math::opencl_kernels::unpack ( __global double *  B,
__global double *  A,
unsigned int  rows,
unsigned int  cols,
unsigned int  view 
)

Unpacks a packed triangular matrix to a flat matrix.

Parameters
[out]Bflat matrix
[in]Apacked buffer
rowsnumber of columns for matrix B
colsnumber of columns for matrix B
viewparameter that defines the triangularity of the input matrix LOWER - lower triangular UPPER - upper triangular if the view parameter is not specified
Note
Code is a const char* held in unpack_kernel_code. This kernel uses the helper macros available in helpers.cl.

Definition at line 32 of file unpack.hpp.