![]() |
Stan Math Library
5.1.0
Automatic Differentiation
|
|
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 std::vector, and will call assign() element-by element.
For example, a std::vector<int> can be assigned to a std::vector<double> using this function.
| T_lhs | type of elements in the left-hand side vector |
| T_rhs | type of elements in the right-hand side vector |
| x | Left-hand side vector. |
| y | Right-hand side vector. |
| std::invalid_argument | if sizes do not match. |
Definition at line 92 of file assign.hpp.