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

◆ pack()

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

Packs a flat matrix to a packed triangular matrix.

Parameters
[out]Apacked buffer
[in]Bflat matrix
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 pack_kernel_code. This kernel uses the helper macros available in helpers.cl.

Definition at line 31 of file pack.hpp.