1#ifndef STAN_MATH_OPENCL_PRIM_QR_R_HPP
2#define STAN_MATH_OPENCL_PRIM_QR_R_HPP
18template <
typename T_m,
19 require_all_kernel_expressions_and_none_scalar_t<T_m>* =
nullptr>
26 qr_decomposition_cl<false>(m, Q, R);
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.
matrix_cl< double > qr_R(T_m &&m)
Returns the orthogonal factor of the fat 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 ...