diag

Symbol

 * 1)  a function that takes an n-element vector a and outputs an n by n diagonal matrix A where $$A_{ii}=a_i$$