![]()  | 
  
    Stan Math Library
    5.1.0
    
   Automatic Differentiation 
   | 
   
| __kernel void stan::math::opencl_kernels::fill_strict_tri | ( | __global double * | A, | 
| double | val, | ||
| unsigned int | rows, | ||
| unsigned int | cols, | ||
| unsigned int | view_A | ||
| ) | 
Stores constant in the triangular part of a matrix on the OpenCL device.
Supports writing constants to the lower and upper triangular. The input matrix is unchanged if used with any other view.
| [out] | A | matrix | 
| val | value to replicate in the matrix | |
| rows | Number of rows for matrix A | |
| cols | Number of columns for matrix A | |
| view_A | triangular part of matrix A to use | 
const char* held in fill_strict_tri_kernel_code. This kernel uses the helper macros available in helpers.cl. Definition at line 32 of file fill_strict_tri.hpp.