Loading [MathJax]/extensions/TeX/AMSsymbols.js
Automatic Differentiation
 
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
Loading...
Searching...
No Matches

◆ to_ref() [1/2]

template<typename T , require_not_tuple_t< T > * = nullptr>
ref_type_t< T && > stan::math::to_ref ( T &&  a)
inline

This evaluates expensive Eigen expressions.

If given expression involves no calculations this is a no-op that should be optimized away.

Template Parameters
Targument type
Parameters
aargument
Returns
optionally evaluated argument

Definition at line 18 of file to_ref.hpp.