mikera/core.matrix — pull request #169 by Gerrrr (2014-07-27 15:21:35+00:00)
Title: diagonal-matrix now returns matrix of current implementation

Currently, there is a bug:
```Clojure
user=> (set-current-implementation :ndarray)
:ndarray
user=> (diagonal-matrix [1 1 1])
[[1 0.0 0.0] [0.0 1 0.0] [0.0 0.0 1]]
```

PR fix:
```Clojure
user=> (set-current-implementation :ndarray)
:ndarray
user=> (diagonal-matrix [1 1 1])
#
```