summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* DOC: Add more information about poly1d -> polynomial to reference guide (#16164)Ross Barnowski2020-12-151-10/+154
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added internal link to polynomial package. Also uncapitalized Polynomial, to mitigate potential confusion of the Polynomial convenience class with the polynomial package. * WIP: Adding transition guide from poly1d to polynomial * WIP: Started adding quickref table for poly transition * WIP: Finish fleshing out transition guide for polynomials * Proofreading transition guide. * Fix traceback in code example for failing doctest. * DOC: Remove trailing _ from sphinx links. Was causing a CI failure on building the devdocs * Fix typo. Co-Authored-By: Chris Barnes <barnesc@janelia.hhmi.org> * DOC: Add note about terminology. Clarify the distinction between polynomial module and polynomial package. Co-authored-by: Chris Barnes <barnesc@janelia.hhmi.org>
* Replace Numpy with NumPyStefan van der Walt2020-12-146-39/+39
|
* Merge pull request #17921 from bashtage/uniform-high-low-checkMatti Picus2020-12-141-0/+6
|\ | | | | BUG: Enforce high >= low on uniform number generators
| * Revert changes to mtrandKevin Sheppard2020-12-111-0/+6
| | | | | | | | This doesn't qualify for fixing under the NEP.
* | Merge pull request #17953 from seberg/accept-nep-42Matti Picus2020-12-141-2/+2
|\ \ | | | | | | NEP: Accept NEP 42 -- New and extensible DTypes
| * | NEP: Accept NEP 42 -- New and extensible DTypesSebastian Berg2020-12-071-2/+2
| | |
* | | DOC: Rename basics to fundamentals + added description (#17889)Ryan C Cooper2020-12-131-5/+9
| | |
* | | Merge pull request #17888 from spaceofmiah/patch-1Ralf Gommers2020-12-121-1/+1
|\ \ \ | |_|/ |/| | DOC: Correct sentence/statement composition
| * | Correct sentence/statement compositionAgbonze Osazuwa2020-12-011-1/+1
| | | | | | | | | | | | | | | Incorrect statement spotted *In the simplest example of broadcasting, the scalar ``b`` is stretched to become an array ~of with the same~ shape as ``a`` so the shapes are compatible for element-by-element multiplication.*
* | | ENH: Use versioneer to manage numpy versions.Charles Harris2020-12-081-5/+4
| |/ |/| | | | | | | | | | | | | | | | | | | | | The new tags look like '1.21.0.dev0+98.gaa0453721f', where '98' is the number of commits since the 1.21.0 branch was started and 'aa0453721f'. The chosen form may be specified in the 'setup.cfg' file. This PR adds two new files 'numpy/_version.py' and 'numpy/version.py'. The latter is kept because it is part of the public API and is actually used by some downstream projects, but it is no longer dynamically created. See https://github.com/python-versioneer/python-versioneer/ for more information.
* | Merge pull request #17920 from seberg/update-nep-resolve-descrSebastian Berg2020-12-072-30/+53
|\ \ | | | | | | NEP: Update NEP 42 and 43 according to the current implementation
| * | NEP: Update NEP 42 and 43 according to the current implementationSebastian Berg2020-12-072-30/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We modified the `resolve_descriptors` function to not use `context` which is a bit heavy weight, and that also allows removing of DTypes from the context. This means it now passes `self, DTypes` (where self is the unbound ArrayMethod). Also add a note on the -1 return value of `resolve_descriptors`. Apply suggestions from code review Co-authored-by: Ross Barnowski <rossbar@berkeley.edu> Fixup note on CastingImpl being mainly a NEP 42 name Fixup sphinx warnings
* | | DOC: Move links to the end of the sections in new debugging textSebastian Berg2020-12-051-4/+6
| | |
* | | Apply suggestions from code reviewSebastian Berg2020-12-051-8/+10
| | | | | | | | | Co-authored-by: Matti Picus <matti.picus@gmail.com>
* | | DOC: Add information about leak checking and valgrindSebastian Berg2020-12-053-0/+190
|/ / | | | | | | | | | | | | | | | | This is not meant to be a fool-proof guide. It isn't and I do not want to expect people to use it... But I realize that I use these things semi-regulary (even if I never bother to remove all wrinkles) and it is good to have the information somewhere so that everyone knows where to look.
* | DOC: Update release notes to mention `type(dtype) is not np.dtype`Sebastian Berg2020-12-041-0/+29
| | | | | | | | | | | | | | | | | | This also requires mentioning the C-API macro `#define PyArray_DescrCheck(op) PyObject_TypeCheck(op, &PyArrayDescr_Type)` which was updated to the above in 1.16.6 meaning that using the macro and compiling against an older NumPy version will cause issues. The macro has to be avoided in that case.
* | DEP: Finalize unravel_index `dims` alias for `shape` keywordSebastian Berg2020-12-021-0/+2
| | | | | | | | | | The argument was renamed to `shape` and deprecated since NumPy 1.16, so the deprecation can now be finalized.
* | Merge pull request #17876 from sfolje0/quick-fixMatti Picus2020-12-021-0/+0
|\ \ | | | | | | DOC: fixed typo in np-indexing.png explaining [-2:] slice in user guide
| * | DOC: fixed typo in np-indexing.png explaining [-2:] slice in user guidesfolje02020-11-291-0/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In User Guide of NumPy in tutorial for absulute beginners, i.e. in documentation document doc/source/user/absulute_beginners.rst there was a typo in the image np-indexing.png visualizing slices in **Indexing and slicing** section. Namely, in the first image in mentioned section, the last visualized array (under `data[-2:]` command), there was a picture of `data[:]` or `data[0:3]` (i.e. array([1,2,3])) presenting the slice indexing. But it should be a picture of of `data[-2:]` (i.e. array([2,3])). This commit fixes this by adding additional picture of array([2,3]) under `data[-2:]` command and changing command above last array([1,2,3]) pic to title named `data` to preserve the idea behind slice indexing.
* | | Merge pull request #17727 from ganesh-k13/enh_14959-libdivideMatti Picus2020-12-021-0/+7
|\ \ \ | |_|/ |/| | ENH: Added libdivide for floor divide
| * | DOC: Improved floor division (#17727)Ganesh Kathiresan2020-11-231-2/+2
| | |
| * | ENH: Improved floor division (#17727)Ganesh Kathiresan2020-11-211-4/+3
| | |
| * | ENH: Improved floor division (#17727)Ganesh Kathiresan2020-11-121-0/+0
| | |
| * | ENH: Improved floor division (#17727)Ganesh Kathiresan2020-11-111-0/+8
| | |
* | | Merge pull request #17875 from charris/prepare-for-1.20.0-releaseCharles Harris2020-11-302-0/+1743
|\ \ \ | |_|/ |/| | DOC: Prepare for 1.20.0 release
| * | DOC: Add NumPy 1.20.0-changelog.rstCharles Harris2020-11-291-0/+845
| | |
| * | DOC: Prepare NumPy 1.20.0 release notes.Charles Harris2020-11-291-62/+93
| | |
| * | DOC: Run towncrier to produce unedited release notes.Charles Harris2020-11-2856-663/+867
| | | | | | | | | | | | | | | This is a separate commit so that it can be cherry-picked to master to cleanup the upcoming_changes directory.
* | | DOC: update the release howto for oldest-supported-numpyRalf Gommers2020-11-291-0/+9
| | | | | | | | | | | | [ci skip]
* | | DOC: fix typo in glossary.rstHollow Man2020-11-291-1/+1
| | | | | | | | | | | | Responsiblity -> Responsibility
* | | MAINT: Update master after 1.20.x branch.v1.21.0.dev0Charles Harris2020-11-2757-663/+7
|/ / | | | | | | | | | | | | | | - Update setup.py - Update pavement.py - Add 1.21.0-note.rst - Update npyconfig.h - Clear release/upcoming_changes
* | ENH,API: Store exported buffer info on the array (#16938)Sebastian Berg2020-11-262-0/+43
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH,API: Store exported buffer info on the array This speeds up array deallocation and buffer exports, since it removes the need to global dictionary lookups. It also somewhat simplifies the logic. The main advantage is prossibly less the speedup itself (which is not large compared to most things that happen in the livetime of an array), but rather that no unnecessary work is done for shortlived arrays, which never export a buffer. The downside of this approach is that the ABI changes for anyone who would be subclassing ndarray in C. * MAINT: Do not tag the NULL (no buffers exported) The allocation is not the right place to initialize to anything but NULL, so take the easy path and do not tag the NULL default. * TST: Add test for best try RuntimeError on corrupt buffer-info * Remove NPY_SIZEOF_PYARRAYOBJECT and add some documentation * Use 3 to tag the pointer and object for a "bad" one in the test * DEP: deprecate the NPY_SIZEOF_PYARRAYOBJECT macro * Tune down matti's deprecation to write the error instead. * Tweak macro, so that clang hopefully doesn't complain. * Use None instead of NULL in PyErr_WriteUnraisable, pypy seems to have a bug with it * Just comment it out... * Apply suggestions from code review Co-authored-by: Matti Picus <matti.picus@gmail.com> Co-authored-by: mattip <matti.picus@gmail.com>
* | DOC: Add release note for gh-16161.Charles Harris2020-11-251-0/+44
| |
* | MAINT: Rewrite can-cast logic in terms of NEP 42Sebastian Berg2020-11-242-2/+17
| |
* | Merge pull request #17823 from charris/update-release-fragmentsCharles Harris2020-11-238-0/+43
|\ \ | | | | | | DOC: Add missing release fragments to ``upcoming_changes``.
| * | DOC: Add gh-17344 to the NumPy 1.20.0 release notes.Charles Harris2020-11-221-0/+3
| | |
| * | DOC: Add gh-17284 to NumPy 1.20.0 release notes.Charles Harris2020-11-221-0/+6
| | |
| * | DOC: Add gh-17195 to NumPy 1.20.0 release notes.Charles Harris2020-11-221-0/+5
| | |
| * | DOC: Add gh-17123 to NumPy 1.20.0 release notes.Charles Harris2020-11-221-0/+12
| | |
| * | DOC: Add gh-16710 to NumPy 1.20.0 release notes.Charles Harris2020-11-191-0/+3
| | |
| * | DOC: Add gh-16594 to NumPy 1.20.0 release notes.Charles Harris2020-11-191-0/+4
| | |
| * | DOC: Add gh-16570 to NumPy 1.20.0 release notes.Charles Harris2020-11-191-0/+4
| | |
| * | DOC: Add gh-15121 to NumPy 1.20.0 release notes.Charles Harris2020-11-191-0/+6
| | |
* | | Merge pull request #15852 from sgasse/add_where_to_meanCharles Harris2020-11-221-0/+24
|\ \ \ | |/ / |/| | ENH: Add where argument to np.mean
| * | ENH: Add where argument to several functionsSimon Gasse2020-07-181-0/+24
| | | | | | | | | | | | | | | | | | Harmonize the signature of np.mean, np.var np.std, np.any, np.all, and their respective nd.array methods with np.sum by adding a where argument, see gh-15818.
* | | BUG: ensure _UFuncNoLoopError can be pickled (#17377)bernie gray2020-11-181-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * BUG: ensure _UFuncNoLoopError can be pickled; closes #16490 * update quickstart.rst * add round trip pickle test * move _ArrayMemoryError picking test
* | | Merge pull request #17788 from seberg/release-note-fixupsCharles Harris2020-11-188-14/+14
|\ \ \ | | | | | | | | DOC: Fix up links, code blocks of release note fragments
| * | | DOC: Fix up links, code blocks of release note fragmentsSebastian Berg2020-11-168-14/+14
| | | | | | | | | | | | | | | | | | | | This should fix hopefully all broken links and missing code blocks. I also slight shortened one of the very long titles.
* | | | Merge pull request #17725 from pentschev/nep-35-downstream-like-instructionsSebastian Berg2020-11-161-15/+102
|\ \ \ \ | |/ / / |/| | | NEP: Add NEP-35 instructions on reading like= downstream
| * | | NEP: NEP-35 phrasing fixPeter Andreas Entschev2020-11-131-1/+1
| | | | | | | | | | | | Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>