1#ifndef STAN_MATH_OPENCL_PRIM_SYMMETRIZE_FROM_LOWER_TRI_HPP
2#define STAN_MATH_OPENCL_PRIM_SYMMETRIZE_FROM_LOWER_TRI_HPP
19template <
typename T_x,
20 require_all_kernel_expressions_and_none_scalar_t<T_x>* =
nullptr>
27 std::forward<T_x>(x));
Represents operation that determines column index.
Represents operation that determines row index.
auto make_holder_cl(const T &func, Args &&... args)
Constructs an expression from given arguments using given functor.
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 transpose(Arg &&a)
Transposes a kernel generator expression.
void check_square(const char *function, const char *name, const T_y &y)
Check if the specified matrix is square.
fvar< T > arg(const std::complex< fvar< T > > &z)
Return the phase angle of the complex argument.
auto symmetrize_from_lower_tri(T_x &&x)
Return a symmetric matrix using elements from the upper triangular part of the input matrix.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...