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

◆ to_var_value() [1/3]

template<typename T , require_eigen_vt< is_var, T > * = nullptr>
var_value< Eigen::Matrix< double, T::RowsAtCompileTime, T::ColsAtCompileTime > > stan::math::to_var_value ( const T &  a)
inline

Converts an Eigen matrix (or vector or row_vector) or expression of vars into var_value.

Adjoint is propagated back to argument in the reverse pass.

Template Parameters
Ttype of the input
Parameters
amatrix to convert

Definition at line 23 of file to_var_value.hpp.