1#ifndef STAN_MATH_REV_CORE_VECTOR_VARI_HPP
2#define STAN_MATH_REV_CORE_VECTOR_VARI_HPP
18 template <
typename Arith,
typename VecVar,
22 vis_ =
reinterpret_cast<vari**
>(
operator new(
sizeof(
vari*) * vs.size()));
23 for (
size_t i = 0; i < vs.size(); ++i) {
vari * operator[](size_t n) const
op_vector_vari(Arith f, VecVar &&vs)
require_t< std::is_arithmetic< std::decay_t< T > > > require_arithmetic_t
Require type satisfies std::is_arithmetic.
require_t< container_type_check_base< is_vector_like, value_type_t, TypeCheck, Check... > > require_vector_like_vt
Require type satisfies is_vector_like.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...