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

◆ diag_matrix() [2/3]

template<typename T , require_all_kernel_expressions_and_none_scalar_t< T > * = nullptr>
var_value< matrix_cl< double > > stan::math::diag_matrix ( const var_value< T > &  v)
inline

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

Parameters
[in]vSpecified vector.
Returns
Diagonal matrix with vector as diagonal values.

Definition at line 21 of file diag_matrix.hpp.