Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ read_val_adj()

template<typename EigRev , typename EigDbl >
void stan::math::read_val_adj ( const EigRev &  VarMat,
EigDbl &  ValMat,
EigDbl &  AdjMat 
)
inline

Function applying the val_adj_functor to extract the values and adjoints of a given var or vari matrix into separate matrices.

Template Parameters
EigRevtype of the Eigen container of var or vari.
EigDbltype of the Eigen container of doubles to be copied to.
Parameters
[in]VarMatInput Eigen container of var.
[in]ValMatOutput Eigen container of values.
[in]AdjMatOutput Eigen container of adjoints.

Definition at line 158 of file read_var.hpp.