summaryrefslogtreecommitdiff
path: root/numpy/lib/tests/test_packbits.py
diff options
context:
space:
mode:
authorEric Wieser <wieser.eric@gmail.com>2018-02-24 23:32:29 -0800
committerEric Wieser <wieser.eric@gmail.com>2018-02-25 13:31:01 -0800
commit1e45ea470eaae8d23c161f78931e946847e2b7e4 (patch)
tree3d43c1484ee6c1ebaf6d66d2f9203455926d8d78 /numpy/lib/tests/test_packbits.py
parentd71b17d5aac95ad818dc78680e23f16bdbbf45dd (diff)
downloadnumpy-1e45ea470eaae8d23c161f78931e946847e2b7e4.tar.gz
BUG: Make np.partition and np.sort work on np.matrix when axis=None
Both were making the normally valid assumption that flatten actually flattens, which turns out to be false for matrices. Old behavior: >>> a = np.matrix([[1, 2, 0]]) >>> np.partition(a, 1, axis=None) ValueError: kth(=1) out of bounds (1) >>> np.sort(a, axis=None) matrix([[1, 2, 0]])
Diffstat (limited to 'numpy/lib/tests/test_packbits.py')
0 files changed, 0 insertions, 0 deletions