Why does this take an array as an input instead of a shape?  To be consistent with Numpy, this should be named "diag_like".

Add a docstring:

```
'''
Create a diagonal array (0 except for 1's on the diagonal) with
the same shape as ``array``.
'''
```