diagonal

Creates a 2D diagonal matrix from the given values.

Return

the created matrix

Parameters

values

the diagonal values