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

◆ assign() [2/3]

template<typename T_lhs , typename T_rhs , require_all_eigen_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 be called for arguments that are both Eigen::Matrix types.

Template Parameters
T_lhstype of the left-hand side matrix
T_rhstype of the right-hand side matrix
Parameters
xLeft-hand side matrix.
yRight-hand side matrix.
Exceptions
std::invalid_argumentif sizes do not match.

Definition at line 67 of file assign.hpp.