1#ifndef STAN_MATH_OPENCL_REV_MDIVIDE_RIGHT_TRI_LOW_HPP 
    2#define STAN_MATH_OPENCL_REV_MDIVIDE_RIGHT_TRI_LOW_HPP 
   27    typename T1, 
typename T2,
 
   28    require_all_nonscalar_prim_or_rev_kernel_expression_t<T1, T2>* = 
nullptr,
 
   29    require_any_var_t<T1, T2>* = 
nullptr>
 
   33  if (A.size() == 0 || b.size() == 0) {
 
   39      = tri_inverse<matrix_cl_view::Lower>(
value_of(A_arena));
 
   44        if constexpr (is_autodiff_v<T1>) {
 
   49        if constexpr (is_autodiff_v<T2>) {
 
A variant of matrix_cl that schedules its destructor to be called, so it can be used on the AD stack.
 
const matrix_cl_view & view() const
 
Represents an arithmetic matrix on the OpenCL device.
 
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.
 
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)
 
var_value< plain_type_t< T > > make_callback_var(T &&value, F &&functor)
Creates a new var initialized with a callback_vari with a given value and reverse-pass callback funct...
 
T value_of(const fvar< T > &v)
Return the value of the specified variable.
 
auto & adjoint_of(const T &x) noexcept
Returns a reference to a variable's adjoint.
 
typename internal::arena_type_impl< std::decay_t< T > >::type arena_t
Determines a type that can be used in place of T that does any dynamic allocations on the AD stack.
 
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...