I have been using the Diagonal function to take a vector array and produce a matrix with entries of the vector along the diagonal. It used to work fine but now instead of producing a matrix with entries along the diagonal, it now just makes a 1x1 scalar.

```
using LinearAlgebra
myvec = [1 2 3]
mymat = Diagonal(myvec)
# previously produced
mymat = [1 0 0; 0 2 0; 0 0 3]
#now produces
mymat = 1
```

I think it has something to do with types? For instance, when it works it is a 3x3 Diagonal{type, Array{type, 1}}, and when it doesn’t it’s a 1x1 Diagoanl{similar}. The weird thing is that I didn’t change my code from last week to this, and it used to work, but now it does not. Any ideas would be most helpful.