Array.diag can returns the diagonal of an array, however I couldn't find the associated constructor i.e. to construct an array given it's diagonal. In numpy this can be done with the [`np.diag`](https://docs.scipy.org/doc/numpy/reference/generated/numpy.diag.html) function.