![]()  | 
  
    Stan Math Library
    5.1.0
    
   Automatic Differentiation 
   | 
   
      
  | 
  inline | 
Return a square diagonal matrix with the specified vector of coefficients as the diagonal values.
| T_x | type of input kernel generator expression for the diagonal | 
| x | input kernel generator expression for the diagonal | 
Definition at line 25 of file diag_matrix.hpp.