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

◆ var_value() [2/7]

template<typename T >
template<typename S , require_assignable_t< value_type, S > * = nullptr>
stan::math::var_value< T, internal::require_matrix_var_value< T > >::var_value ( S &&  x)
inline

Construct a variable from the specified floating point argument by constructing a new vari_value<value_type>.

This constructor is only valid when S is convertible to this vari_value's value_type.

Template Parameters
SA type that is convertible to value_type.
Parameters
xValue of the variable.

Definition at line 366 of file var.hpp.