![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
| __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.
| [out] | A | packed buffer |
| [in] | B | flat matrix |
| rows | number of columns for matrix B | |
| cols | number of columns for matrix B | |
| view | parameter that defines the triangularity of the input matrix LOWER - lower triangular UPPER - upper triangular if the view parameter is not specified |
const char* held in pack_kernel_code. This kernel uses the helper macros available in helpers.cl.