1#ifndef STAN_MATH_OPENCL_REV_MDIVIDE_LEFT_TRI_LOW_HPP
2#define STAN_MATH_OPENCL_REV_MDIVIDE_LEFT_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));
76 = res_val_transpose * res.adj() * res_val_transpose;
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.
require_all_t< is_kernel_expression_and_not_scalar< Types >... > require_all_kernel_expressions_and_none_scalar_t
Enables a template if all given types are non-scalar types that are a valid kernel generator expressi...
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.
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...
auto & adjoint_of(const T &x)
Returns a reference to a variable's adjoint.
T value_of(const fvar< T > &v)
Return the value of the specified variable.
Eigen::Matrix< value_type_t< T1 >, T1::RowsAtCompileTime, T2::ColsAtCompileTime > mdivide_left_tri_low(const T1 &A, const T2 &b)
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 ...
Metaprogramming struct to detect whether a given type is constant in the mathematical sense (not the ...