1#ifndef STAN_MATH_PRIM_FUN_VECTOR_SEQ_VIEW_HPP
2#define STAN_MATH_PRIM_FUN_VECTOR_SEQ_VIEW_HPP
21template <
typename T,
typename =
void>
39 static constexpr auto size() {
return 1; }
40 inline const auto&
operator[](
size_t )
const noexcept {
return m_; }
42 template <
typename C = T, require_st_arithmetic<C>* =
nullptr>
43 inline const auto&
val(
size_t )
const noexcept {
47 template <
typename C = T, require_st_autodiff<C>* =
nullptr>
48 inline auto val(
size_t )
const noexcept {
78 inline auto size() const noexcept {
return v_.size(); }
80 inline decltype(
auto)
operator[](
size_t i)
const {
return v_[i]; }
82 template <
typename C = T, require_st_arithmetic<C>* =
nullptr>
83 inline decltype(
auto)
val(
size_t i)
const {
87 template <
typename C = T, require_st_autodiff<C>* =
nullptr>
88 inline auto val(
size_t i)
const {
89 return value_of(v_[i]);
const auto & operator[](size_t) const noexcept
auto val(size_t) const noexcept
static constexpr auto size()
const auto & val(size_t) const noexcept
vector_seq_view(const T &m)
auto size() const noexcept
vector_seq_view(const T &v) noexcept
decltype(auto) val(size_t i) const
This class provides a low-cost wrapper for situations where you either need an Eigen Vector or RowVec...
require_t< is_matrix< std::decay_t< T > > > require_matrix_t
Require type satisfies is_matrix.
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
The lgamma implementation in stan-math is based on either the reentrant safe lgamma_r implementation ...
Base implementation for checking if type is std vector.
Extends std::false_type when instantiated with zero or more template parameters, all of which extend ...