Stan Math Library
4.9.0
Automatic Differentiation
|
Functor for extracting the vari*, values, and adjoints from a matrix of var.
This functor is called using Eigen's NullaryExpr framework, which takes care of the indexing. This removes the need to programmatically account for whether the input is row- or column-major.
Definition at line 18 of file read_var.hpp.
#include <read_var.hpp>
Public Member Functions | |
vi_val_adj_functor (const EigRev &arg1, EigVari &arg2, EigDbl &arg3) | |
decltype(auto) | operator() (Eigen::Index row, Eigen::Index col) const |
decltype(auto) | operator() (Eigen::Index index) const |
Private Attributes | |
const EigRev & | var_mat |
EigVari & | vi_mat |
EigDbl & | val_mat |