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

◆ operator=() [4/5]

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

Assignment of another var value, when either both this or other does not contain a plain type.

Note
Here we do not need to use deep_copy as the var_value's inner vari_type holds a view which will call the assignment operator that does not perform a placement new.
Template Parameters
Stype of the value in the var_value to assign
Parameters
otherthe value to assign
Returns
this

Definition at line 1122 of file var.hpp.