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

◆ tridiagonalization_v_step_1()

__kernel void stan::math::opencl_kernels::tridiagonalization_v_step_1 ( const __global double *  P,
const __global double *  V,
__global double *  Uu,
__global double *  Vu,
const int  P_rows,
const int  V_rows,
const int  k 
)

Calculates first part of constructing the vector v: Uu = Pb * u and Vu = Vl * u.

Pb is a block of packed matrix, Vl is left part of matrix V and u is householder vector. Must be run with number of work groups equal to size of resulting vectors and 64 threads per work group.

Parameters
PPacked matrix being constructed.
VMatrix V.
[out]UuFirst resulting vector.
[out]VuSecond resulting vector.
P_rowsNumber of rows of the packed matrix
V_rowsNumber of rows of the matrix V
kIndex of the householder vector in the block we use as input

Definition at line 119 of file tridiagonalization.hpp.