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

◆ qr_decomposition_cl()

template<bool need_Q = true>
void stan::math::qr_decomposition_cl ( const matrix_cl< double > &  A,
matrix_cl< double > &  Q,
matrix_cl< double > &  R,
int  r = 100 
)

Calculates QR decomposition of A using the block Householder algorithm.

The implementation is based on the article: need_Q whether Q needs to be calculated (default true) A matrix to factorize Q out the orthonormal matrix R out the lower triangular matrix r Block size. Optimal value depends on the hardware.

Definition at line 34 of file qr_decomposition.hpp.