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

◆ vari_value() [1/4]

template<typename T >
template<typename S , require_assignable_t< T, S > * = nullptr>
stan::math::vari_value< T, require_all_t< is_plain_type< T >, is_eigen_dense_base< T > > >::vari_value ( const S &  x)
inlineexplicit

Construct a dense Eigen variable implementation from a value.

The adjoint is initialized to zero.

All constructed variables are added to the no chain stack. Variables should be constructed before variables on which they depend to insure proper partial derivative propagation.

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

Definition at line 689 of file vari.hpp.