1#ifndef STAN_MATH_PRIM_FUN_VECTOR_SEQ_VIEW_HPP
2#define STAN_MATH_PRIM_FUN_VECTOR_SEQ_VIEW_HPP
31template <
typename T,
typename =
void>
49 static constexpr auto size() {
return 1; }
50 inline const auto&
operator[](
size_t )
const noexcept {
return m_; }
52 template <
typename C = T, require_st_arithmetic<C>* =
nullptr>
53 inline const auto&
val(
size_t )
const noexcept {
57 template <
typename C = T, require_st_autodiff<C>* =
nullptr>
58 inline auto val(
size_t )
const noexcept {
82 inline auto size() const noexcept {
return v_.size(); }
84 inline decltype(
auto)
operator[](
size_t i)
const {
return v_[i]; }
86 template <
typename C = T, require_st_arithmetic<C>* =
nullptr>
87 inline decltype(
auto)
val(
size_t i)
const {
91 template <
typename C = T, require_st_autodiff<C>* =
nullptr>
92 inline auto val(
size_t i)
const {
93 return value_of(v_[i]);
auto size() const noexcept
vector_seq_view(const T &v) noexcept
decltype(auto) val(size_t i) const
auto val(size_t) const noexcept
const auto & val(size_t) const noexcept
vector_seq_view(const T &m)
const auto & operator[](size_t) const noexcept
static constexpr auto size()
This class provides a low-cost wrapper for situations where you either need an Eigen Vector or RowVec...
require_t< container_type_check_base< is_std_vector, value_type_t, TypeCheck, Check... > > require_std_vector_vt
Require type satisfies is_std_vector.
typename ref_type_if< true, T >::type ref_type_t
std::enable_if_t< Check::value > require_t
If condition is true, template is enabled.
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Check if a type is derived from Eigen::EigenBase or is a var_value whose value_type is derived from E...
Checks if decayed type is a var, fvar, or arithmetic.
Base implementation for checking if type is std vector.
Extends std::true_type when instantiated with zero or more template parameters, all of which extend t...
Extends std::false_type when instantiated with zero or more template parameters, all of which extend ...