1#ifndef STAN_MATH_PRIM_FUN_CHOLESKY_DECOMPOSE_HPP
2#define STAN_MATH_PRIM_FUN_CHOLESKY_DECOMPOSE_HPP
29template <
typename EigMat, require_eigen_t<EigMat>* =
nullptr,
30 require_not_eigen_vt<is_var, EigMat>* =
nullptr>
35 Eigen::LLT<plain_type_t<EigMat>> llt = m_eval.llt();
void check_symmetric(const char *function, const char *name, const matrix_cl< T > &y)
Check if the matrix_cl is symmetric.
matrix_cl< double > cholesky_decompose(const matrix_cl< double > &A)
Returns the lower-triangular Cholesky factor (i.e., matrix square root) of the specified square,...
void check_pos_definite(const char *function, const char *name, const EigMat &y)
Check if the specified square, symmetric matrix is positive definite.
void check_not_nan(const char *function, const char *name, const T_y &y)
Check if y is not NaN.
ref_type_t< T && > to_ref(T &&a)
This evaluates expensive Eigen expressions.
typename plain_type< std::decay_t< T > >::type plain_type_t
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...