Stan Math Library
5.0.0
Automatic Differentiation
|
|
inline |
Returns a Matrix with values added along the main diagonal.
T_m | type of input kernel generator expression for the input matrix |
T_a | type of input kernel generator expression to add along the diagonal |
mat | input kernel generator expression |
to_add | scalar value or input kernel generator expression to add along the diagonal |
Definition at line 27 of file add_diag.hpp.