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

◆ assign() [1/3]

template<typename T_lhs , typename T_rhs , require_all_stan_scalar_t< T_lhs, T_rhs > * = nullptr>
void stan::math::assign ( T_lhs &  x,
const T_rhs &  y 
)
inline

Copy the right-hand side's value to the left-hand side variable.

The assign() function is overloaded. This instance will match arguments where the right-hand side is assignable to the left and they are not both std::vector or Eigen::Matrix types.

Template Parameters
T_lhsType of left-hand side.
T_rhsType of right-hand side.
Parameters
xLeft-hand side.
yRight-hand side.

Definition at line 46 of file assign.hpp.