Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Return the sum of the specified matrices.
The two matrices must have the same dimensions.
Mat1 | type of the first matrix or expression |
Mat2 | type of the second matrix or expression |
m1 | First matrix or expression. |
m2 | Second matrix or expression. |
std::invalid_argument | if m1 and m2 do not have the same dimensions. |