Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::vector_seq_view< T, require_std_vector_vt< internal::is_matrix_or_std_vector, T > > Class Template Reference

Detailed Description

template<typename T>
class stan::vector_seq_view< T, require_std_vector_vt< internal::is_matrix_or_std_vector, T > >

This class provides a low-cost wrapper for situations where you either need an Eigen Vector or RowVector or a std::vector of them and you want to be agnostic between those two options.

This is similar to scalar_seq_view but instead of being a sequence-like view over a scalar or seq of scalars, it's a sequence-like view over a Vector or seq of Vectors. Notably this version only allows std::vectors as the outer container type, since we would have difficulty figuring out which contained type was the container otherwise.

Template Parameters
Sthe type inside of the std::vector

Definition at line 74 of file vector_seq_view.hpp.

#include <vector_seq_view.hpp>

Public Member Functions

 vector_seq_view (const T &v) noexcept
 
auto size () const noexcept
 
decltype(auto) operator[] (size_t i) const
 
template<typename C = T, require_st_arithmetic< C > * = nullptr>
decltype(auto) val (size_t i) const
 
template<typename C = T, require_st_autodiff< C > * = nullptr>
auto val (size_t i) const
 

Private Attributes

const T & v_
 

The documentation for this class was generated from the following file: