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

◆ fill_strict_tri()

__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.

Parameters
[out]Amatrix
valvalue to replicate in the matrix
rowsNumber of rows for matrix A
colsNumber of columns for matrix A
view_Atriangular part of matrix A to use
Note
Code is a 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.