![]() |
Stan Math Library
2.11.0
reverse mode automatic differentiation
|
Primary template class for container view of array y with same structure as T1 and size as x. More...
#include <container_view.hpp>
Public Member Functions | |
| container_view (const T1 &x, T2 *y) | |
| Constructor. More... | |
| T2 & | operator[] (int i) |
| operator[](int i) returns reference to view, indexed by i Specialization handle appropriate broadcasting if size of x is 1 More... | |
Primary template class for container view of array y with same structure as T1 and size as x.
| T1 | type of view. |
| T2 | type of scalar returned by view. |
Definition at line 22 of file container_view.hpp.
|
inline |
Constructor.
| x | object from which size is to be inferred |
| y | underlying array |
Definition at line 30 of file container_view.hpp.
|
inline |
operator[](int i) returns reference to view, indexed by i Specialization handle appropriate broadcasting if size of x is 1
| i | index |
Definition at line 40 of file container_view.hpp.