1#ifndef STAN_MATH_PRIM_FUNCTOR_BROADCAST_ARRAY_HPP
2#define STAN_MATH_PRIM_FUNCTOR_BROADCAST_ARRAY_HPP
21 std::reference_wrapper<T>
prim_;
24 template <
typename TT>
40template <
typename T,
typename S,
typename Enable =
void>
58template <
typename ViewElt,
typename T>
60 enum { R = T::RowsAtCompileTime, C = T::ColsAtCompileTime };
std::reference_wrapper< T > prim_
broadcast_array(TT &&prim)
promote_scalar_t< ViewElt, T > T_arg
constexpr void add_write_event(Y &&)
require_t< std::is_arithmetic< scalar_type_t< std::decay_t< T > > > > require_st_arithmetic
Require scalar type satisfies std::is_arithmetic.
require_t< is_eigen< std::decay_t< T > > > require_eigen_t
Require type satisfies is_eigen.
ViewElt & operator()(int)
Not implemented so cannot be called.
T & col(int)
Not implemented so cannot be called.
ViewElt & operator[](int)
Not implemented so cannot be called.
void operator-=(T_arg)
Not implemented so cannot be called.
void operator=(const T_arg &)
Not implemented so cannot be called.
T & row(int)
Not implemented so cannot be called.
void operator=(const Y &m)
Broadcast array can be assigned a scalar or a vector.
void operator+=(T_arg)
Not implemented so cannot be called.
constexpr void operator=(const Y &)
Not implemented so cannot be called.
constexpr T & operator[](int)
Not implemented so cannot be called.
typename promote_scalar_type< std::decay_t< T >, std::decay_t< S > >::type promote_scalar_t
auto sum(const std::vector< T > &m)
Return the sum of the entries of the specified standard vector.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...