1#ifndef STAN_MATH_REV_FUN_REP_ROW_VECTOR_HPP
2#define STAN_MATH_REV_FUN_REP_ROW_VECTOR_HPP
20template <
typename T_ret, require_var_matrix_t<T_ret>* =
nullptr,
21 require_eigen_row_vector_t<value_type_t<T_ret>>* =
nullptr>
24 forward_as<var>(x).adj() += vi.adj().sum();
auto rep_row_vector(const scalar_type_t< T > &x, int n)
Creates a matrix_cl representing a row vector by replicating the input value.
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...
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...