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

◆ block_apply_packed_Q_cl()

void stan::math::internal::block_apply_packed_Q_cl ( const matrix_cl< double > &  packed_cl,
matrix_cl< double > &  A,
const int  r = 200 
)
inline

Calculates Q*A in-place.

To construct Q pass an appropriate identity matrix as input A.

Parameters
packed_clPacked result of tridiagonalization that contains householder vectors that define Q in columns bellow the diagonal. Usually result of a call to block_householder_tridiag_cl.
[in,out]AOn input a matrix to multiply with Q. On output the product Q*A.
rBlock size. Affects only performance of the algorithm. Optimal value depends on the size of A and cache of the processor. For larger matrices or larger cache sizes a larger value is optimal.

Definition at line 100 of file tridiagonalization.hpp.