summaryrefslogtreecommitdiff
path: root/numpy/polynomial/polyutils.py
diff options
context:
space:
mode:
authorGarrett-R <garrettreynolds5@gmail.com>2014-12-08 20:33:48 -0800
committerGarrett-R <garrettreynolds5@gmail.com>2014-12-08 20:33:48 -0800
commit819b3a8a019469774a5343afd87ec71ec696bf80 (patch)
treec4bf6458781941e24b489b2066fbf755f8deeb2a /numpy/polynomial/polyutils.py
parentb8a5da49675009165326ec2e7aa6968cf6e15782 (diff)
downloadnumpy-819b3a8a019469774a5343afd87ec71ec696bf80.tar.gz
BUG: Closes #2015: diag returns ndarray
If x is a matrix, np.diag(x) and np.diagonal(x) now return matrices instead of arrays. Both of these cause x.diagonal() to be called. That means they return row vectors (just like x.flatten(), x.ravel(), x.cumprod(), etc.)
Diffstat (limited to 'numpy/polynomial/polyutils.py')
0 files changed, 0 insertions, 0 deletions