![]() |
Stan Math Library
2.12.0
reverse mode automatic differentiation
|
Template specialization for matrix view of array y with scalar type T2 with shape equal to x. More...
#include <container_view.hpp>
Public Member Functions | |
container_view (const std::vector< Eigen::Matrix< T1, R, C > > &x, T2 *y) | |
Constructor assumes all matrix elements in std::vector are of same dimension. More... | |
Eigen::Map< Eigen::Matrix< T2, R, C > > & | operator[] (int i) |
operator[](int i) returns matrix view of scalartype T2 at appropriate index i in array y More... | |
Template specialization for matrix view of array y with scalar type T2 with shape equal to x.
T1 | scalar type of input vector of matrices |
T2 | scalar type of matrix view |
R | rows of input matrix and view |
C | columns of input matrix and view |
Definition at line 90 of file container_view.hpp.
|
inline |
Constructor assumes all matrix elements in std::vector are of same dimension.
Initializes y_view as 1x1 matrix because no nullary constructor for Eigen::Map
x | input matrix |
y | underlying array |
Definition at line 103 of file container_view.hpp.
|
inline |
operator[](int i) returns matrix view of scalartype T2 at appropriate index i in array y
Definition at line 118 of file container_view.hpp.