1#ifndef STAN_MATH_OPENCL_ERR_CHECK_TRIANGULAR_HPP
2#define STAN_MATH_OPENCL_ERR_CHECK_TRIANGULAR_HPP
22template <
typename T, require_matrix_cl_t<T>* =
nullptr>
27 static_cast<int>(A.view()),
"is ",
28 ". Only triangular input matrices are supported!");
void check_triangular(const char *function, const char *name, const T &A)
Check if the matrix_cl is either upper triangular or lower triangular.
void invalid_argument(const char *function, const char *name, const T &y, const char *msg1, const char *msg2)
Throw an invalid_argument exception with a consistently formatted message.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...