1#ifndef STAN_MATH_OPENCL_PRIM_QR_THIN_R_HPP
2#define STAN_MATH_OPENCL_PRIM_QR_THIN_R_HPP
18template <
typename T_m,
19 require_all_kernel_expressions_and_none_scalar_t<T_m>* =
nullptr>
Represents an arithmetic matrix on the OpenCL device.
select_< as_operation_cl_t< T_condition >, as_operation_cl_t< T_then >, as_operation_cl_t< T_else > > select(T_condition &&condition, T_then &&then, T_else &&els)
Selection operation on kernel generator expressions.
auto block_zero_based(T &&a, int start_row, int start_col, int rows, int cols)
Block of a kernel generator expression.
auto rowwise_broadcast(T &&a)
Broadcast an expression in rowwise dimmension.
auto diagonal(T &&a)
Diagonal of a kernel generator expression.
void 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.
matrix_cl< double > qr_thin_R(T_m &&m)
Returns the orthogonal factor of the thin QR decomposition.
void check_nonzero_size(const char *function, const char *name, const T_y &y)
Check if the specified matrix/vector is of non-zero size.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...