Stan Math Library
4.9.0
Automatic Differentiation
|
|
inline |
Returns a Matrix with values added along the main diagonal.
T_m | type of element in Eigen::Matrix |
T_a | Type of element(s) to add along the diagonal |
mat | a matrix |
to_add | scalar value or column vector or row vector to add along the diagonal |
Definition at line 29 of file add_diag.hpp.