New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
median of np.matrix is broken #4301
Comments
This actually seems to be a problem with partition.
median just so happens to use partition as part of its calculation. |
@juliantaylor I'm going to remove this as a blocker, but a fix would be nice. We can backport it later. |
I don't really know how to fix it, should matrix not override flatten to not flatten, or should squeeze be overriden to really flatten? |
Heh, still present in 1.12. |
Reproducing Bug:This bug seems to exist when we compute median for NumPy matrix, and that too when we don't specify the axis.
for numpy array, it flattens the array and computes the median but for the matrix it's not. |
The text was updated successfully, but these errors were encountered: