Automatic Differentiation
 
Loading...
Searching...
No Matches
stan::eval_return_type< T > Struct Template Reference

Detailed Description

template<typename T>
struct stan::eval_return_type< T >

Determines return type of calling .eval() on Eigen expression.

If input type T is a plain type (plain_type_t<T> equals std::decay<T>), than member type is defined as const plain_type_t<T>& . Otherwise member type is defined as plain_type_t<T>.

Template Parameters
Ttype to determine eval return type of

Definition at line 35 of file plain_type.hpp.

#include <plain_type.hpp>

Public Types

using T1 = plain_type_t< T >
 
using type = std::conditional_t< std::is_same< std::decay_t< T >, T1 >::value, const T1 &, T1 >
 

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