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

◆ vari_value() [3/4]

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

Construct a dense Eigen variable implementation from a preconstructed values and adjoints.

All constructed variables are not added to the 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
KA dense Eigen type that is convertible to value_type
Parameters
valMatrix of values
adjMatrix of adjoints

Definition at line 751 of file vari.hpp.