Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::math::vi_val_adj_functor< EigRev, EigVari, EigDbl > Class Template Reference

Detailed Description

template<typename EigRev, typename EigVari, typename EigDbl>
class stan::math::vi_val_adj_functor< EigRev, EigVari, EigDbl >

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
 

The documentation for this class was generated from the following file: