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

◆ neg_rect_lower_tri_multiply()

__kernel void stan::math::opencl_kernels::neg_rect_lower_tri_multiply ( __global double *  A,
const __global double *  temp,
const int  A_rows,
const int  rows 
)

Calculates C = -B * A where B is rectangular and A is a lower triangular.

For a full guide to the inverse lower triangular kernels see the link here.

Inverse Calculation

Graphically, this kernel calculates -temp * C1 where temp is the C2 * A3 calculation from inv_lower_tri_multiply() The kernel is executed using (N, N, m) threads, where N is the size of the input matrices.

Parameters
[in,out]AInput matrix that is being inverted.
[in]tempTemporary matrix with the intermediate results.
A_rowsNumber of rows for A.
rowsThe number of rows in a single matrix of the batch
Note
Code is a const char* held in neg_rect_lower_tri_multiply_kernel_code Used in math/opencl/tri_inverse.hpp. This kernel uses the helper macros available in helpers.cl.

Definition at line 43 of file neg_rect_lower_tri_multiply.hpp.