![]() |
Stan Math Library
2.11.0
reverse mode automatic differentiation
|
Template specialization for scalar view of array y with scalar type T2 with proper indexing inferred from input vector x of scalar type T1. More...
#include <container_view.hpp>
Public Member Functions | |
container_view (const std::vector< T1 > &x, T2 *y) | |
Constructor. More... | |
T2 & | operator[] (int i) |
operator[](int i) returns reference to scalar view indexed at i More... | |
Template specialization for scalar view of array y with scalar type T2 with proper indexing inferred from input vector x of scalar type T1.
T1 | scalar type of input vector |
T2 | scalar type returned by view. |
Definition at line 20 of file container_view.hpp.
|
inline |
Constructor.
x | input vector |
y | underlying array |
Definition at line 28 of file container_view.hpp.
|
inline |
operator[](int i) returns reference to scalar view indexed at i
i | index of scalar element |
Definition at line 37 of file container_view.hpp.