![]() |
Stan Math Library
2.15.0
reverse mode automatic differentiation
|
scalar_seq_view provides a uniform sequence-like wrapper around either a scalar or a sequence of scalars. More...
#include <scalar_seq_view.hpp>
Public Member Functions | |
scalar_seq_view (const C &c) | |
const T & | operator[] (int i) const |
Segfaults if out of bounds. More... | |
int | size () const |
scalar_seq_view provides a uniform sequence-like wrapper around either a scalar or a sequence of scalars.
C | the container type; will be the scalar type if wrapping a scalar |
T | the scalar type |
Definition at line 15 of file scalar_seq_view.hpp.
|
inlineexplicit |
Definition at line 17 of file scalar_seq_view.hpp.
|
inline |
Segfaults if out of bounds.
i | index |
Definition at line 24 of file scalar_seq_view.hpp.
|
inline |
Definition at line 28 of file scalar_seq_view.hpp.