1#ifndef STAN_MATH_OPENCL_REV_COLUMNS_DOT_PRODUCT_HPP
2#define STAN_MATH_OPENCL_REV_COLUMNS_DOT_PRODUCT_HPP
28 typename T1,
typename T2, require_any_var_t<T1, T2>* =
nullptr,
29 require_all_nonscalar_prim_or_rev_kernel_expression_t<T1, T2>* =
nullptr>
41 v1_arena = std::forward<T1>(v1);
45 v2_arena = std::forward<T2>(v2);
55 while (res_val.
rows() > 1) {
Represents an arithmetic matrix on the OpenCL device.
elt_multiply_< as_operation_cl_t< T_a >, as_operation_cl_t< T_b > > elt_multiply(T_a &&a, T_b &&b)
results_cl< T_results... > results(T_results &&... results)
Deduces types for constructing results_cl object.
auto constant(const T a, int rows, int cols)
Matrix of repeated values in kernel generator expressions.
calc_if_< true, as_operation_cl_t< T > > calc_if(T &&a)
auto colwise_broadcast(T &&a)
Broadcast an expression in colwise dimmension.
auto colwise_sum(T &&a)
Column wise sum - reduction of a kernel generator expression.
expressions_cl< T_expressions... > expressions(T_expressions &&... expressions)
Deduces types for constructing expressions_cl object.
adjoint_results_cl< T_results... > adjoint_results(T_results &&... results)
Deduces types for constructing adjoint_results_cl object.
bool size_zero(const T &x)
Returns 1 if input is of length 0, returns 0 otherwise.
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.
void check_matching_sizes(const char *function, const char *name1, const T_y1 &y1, const char *name2, const T_y2 &y2)
Check if two structures at the same size.
auto columns_dot_product(const T_a &a, const T_b &b)
Returns the dot product of columns of the specified matrices.
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 ...
Checks if the decayed type of T is a matrix_cl.
Defines a static member named value which is defined to be false as the primitive scalar types cannot...