1#ifndef STAN_MATH_OPENCL_PRIM_MDIVIDE_RIGHT_TRI_LOW_HPP
2#define STAN_MATH_OPENCL_PRIM_MDIVIDE_RIGHT_TRI_LOW_HPP
23template <
typename T1,
typename T2,
24 require_all_kernel_expressions_t<T1, T2>* =
nullptr>
28 if (A.size() == 0 || b.size() == 0) {
31 return b * tri_inverse<matrix_cl_view::Lower>(
eval(A));
Represents an arithmetic matrix on the OpenCL device.
void check_square(const char *function, const char *name, const T_y &y)
Check if the specified matrix is square.
void check_multiplicable(const char *function, const char *name1, const T1 &y1, const char *name2, const T2 &y2)
Check if the matrices can be multiplied.
Eigen::Matrix< value_type_t< EigMat1 >, EigMat1::RowsAtCompileTime, EigMat2::ColsAtCompileTime > mdivide_right_tri_low(const EigMat1 &A, const EigMat2 &b)
T eval(T &&arg)
Inputs which have a plain_type equal to the own time are forwarded unmodified (for Eigen expressions ...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...