treams.util.diag

treams.util.diag(a, k=0)

Extract diagonal from an array or create an diagonal array.

See also numpy.diag().