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

◆ var_value() [6/7]

template<typename T >
template<typename S , typename T_ = T, require_assignable_t< value_type, S > * = nullptr, require_arena_matrix_t< S > * = nullptr>
stan::math::var_value< T, internal::require_matrix_var_value< T > >::var_value ( const S &  val,
const S &  adj 
)
inline

Construct a var_value with premade arena_matrix types.

The values and adjoint matrices passed here will be shallow copied.

Template Parameters
Stype of the value in the var_value to assing
Parameters
valThe value matrix to go into the vari
adjthe adjoint matrix to go into the vari

Definition at line 431 of file var.hpp.