diff options
author | Charles Harris <charlesr.harris@gmail.com> | 2015-01-03 17:11:32 -0700 |
---|---|---|
committer | Charles Harris <charlesr.harris@gmail.com> | 2015-01-04 08:17:46 -0700 |
commit | ad2d26442a4cf39ca378040f56ee928e673ad42a (patch) | |
tree | a34132b2c193f4b4ba8d45c20056924811eb55c9 /numpy/polynomial/polyutils.py | |
parent | 7fbc43b98d59ef982671b456cebc229425ae7e4e (diff) | |
download | numpy-ad2d26442a4cf39ca378040f56ee928e673ad42a.tar.gz |
BUG: Make diag, diagonal return 1-D arrays for matrix arguments.
This is an ugly hack to preserve backwards compatibility for code
that uses matrices. It is needed since both diag and diagonal have
been changed to preserve subtypes otherwise.
Note that a.diagonal() still returns matrices when a is a matrix.
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions