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

◆ vari_value() [1/2]

template<typename T >
template<typename S , require_convertible_t< S &, T > * = nullptr>
stan::math::vari_value< T, require_t< std::is_floating_point< T > > >::vari_value ( x)
inlinenoexcept

Construct a variable implementation from a value.

The adjoint is initialized to zero.

All constructed variables are added to the stack. Variables should be constructed before variables on which they depend to insure proper partial derivative propagation. During derivative propagation, the chain() method of each variable will be called in the reverse order of construction.

Template Parameters
Sa floating point type.
Parameters
xValue of the constructed variable.

Definition at line 106 of file vari.hpp.