1#ifndef STAN_MATH_OPENCL_PRIM_IDENTITY_MATRIX_HPP
2#define STAN_MATH_OPENCL_PRIM_IDENTITY_MATRIX_HPP
18template <
typename T_x, require_matrix_cl_t<T_x>* =
nullptr>
Represents operation that determines column index.
Represents operation that determines row index.
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.
typename value_type< T >::type value_type_t
Helper function for accessing underlying type.
void check_nonnegative(const char *function, const char *name, const T_y &y)
Check if y is non-negative.
auto identity_matrix(int K)
Return a square identity matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...