Automatic Differentiation
 
Loading...
Searching...
No Matches

◆ diag_matrix() [1/3]

template<typename T_x , require_all_kernel_expressions_and_none_scalar_t< T_x > * = nullptr>
auto stan::math::diag_matrix ( T_x &&  x)
inline

Return a square diagonal matrix with the specified vector of coefficients as the diagonal values.

Template Parameters
T_xtype of input kernel generator expression for the diagonal
Parameters
xinput kernel generator expression for the diagonal
Returns
a kernel generator expression

Definition at line 25 of file diag_matrix.hpp.