8000 ENH: Allow size=0 in numpy.random.choice, regardless of array · Pull Request #8717 · numpy/numpy · GitHub
[go: up one dir, main page]

Skip to content

ENH: Allow size=0 in numpy.random.choice, regardless of array #8717

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

Closed
wants to merge 4 commits into from
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Merge remote-tracking branch 'origin' into random-choice-zero-size
  • Loading branch information
Marein Könings committed Mar 26, 2017
commit c9d9ea12a2777399e094300b35aad81bb5c4dcd5
11 changes: 11 additions & 0 deletions doc/release/1.13.0-notes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -235,6 +235,17 @@ Even when no elements needed to be drawn, ``np.random.randint`` and
``np.random.choice`` raised an error when the arguments described an empty
distribution. This has been fixed so that e.g.
``np.random.choice([],0) == np.array([],dtype=float64)``.
Bundled version of LAPACK is now 3.2.2
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Newline needed here

~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
NumPy comes bundled with a minimal implementation of lapack for systems without
a lapack library installed, under the name of ``lapack_lite``. This has been
upgraded from LAPACK 3.0.0 (June 30, 1999) to LAPACK 3.2.2 (June 30, 2010). See
the `LAPACK changelogs`_ for details on the all the changes this entails.

While no new features are exposed through ``numpy``, this fixes some bugs
regarding "workspace" sizes, and in some places may use faster algorithms.

.. _`LAPACK changelogs`: http://www.netlib.org/lapack/release_notes.html#_4_history_of_lapack_releases

Changes
=======
Expand Down
You are viewing a condensed version of this merge commit. You can view the full changes here.
0