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

Detailed Description

template<typename EigRev, typename EigDbl>
class stan::math::val_adj_functor< EigRev, EigDbl >

Functor for extracting the values and adjoints from a matrix of var or vari.

This functor is called using Eigen's NullaryExpr framework.

Definition at line 45 of file read_var.hpp.

#include <read_var.hpp>

Public Member Functions

 val_adj_functor (const EigRev &arg1, EigDbl &arg2)
 
template<typename T = EigRev, require_st_same< T, var > * = nullptr>
decltype(auto) operator() (Eigen::Index row, Eigen::Index col) const
 
template<typename T = EigRev, require_st_same< T, var > * = nullptr>
decltype(auto) operator() (Eigen::Index index) const
 
template<typename T = EigRev, require_st_same< T, vari * > * = nullptr>
decltype(auto) operator() (Eigen::Index row, Eigen::Index col) const
 
template<typename T = EigRev, require_st_same< T, vari * > * = nullptr>
decltype(auto) operator() (Eigen::Index index) const
 

Private Attributes

const EigRev & var_mat
 
EigDbl & val_mat
 

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