| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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>
|
| |
|
|\
| |
| | |
BUG: Enforce high >= low on uniform number generators
|
| |
| |
| |
| | |
This doesn't qualify for fixing under the NEP.
|
|\ \
| | |
| | | |
NEP: Accept NEP 42 -- New and extensible DTypes
|
| | | |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
DOC: Correct sentence/statement composition
|
| | |
| | |
| | |
| | |
| | | |
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.*
|
| |/
|/|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
NEP: Update NEP 42 and 43 according to the current implementation
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
| | | |
|
| | |
| | |
| | | |
Co-authored-by: Matti Picus <matti.picus@gmail.com>
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
| |
| |
| |
| |
| | |
The argument was renamed to `shape` and deprecated since NumPy 1.16,
so the deprecation can now be finalized.
|
|\ \
| | |
| | | |
DOC: fixed typo in np-indexing.png explaining [-2:] slice in user guide
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| |_|/
|/| | |
ENH: Added libdivide for floor divide
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |_|/
|/| | |
DOC: Prepare for 1.20.0 release
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | |
| | | |
This is a separate commit so that it can be cherry-picked to master
to cleanup the upcoming_changes directory.
|
| | |
| | |
| | |
| | | |
[ci skip]
|
| | |
| | |
| | |
| | | |
Responsiblity -> Responsibility
|
|/ /
| |
| |
| |
| |
| |
| |
| | |
- 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
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 missing release fragments to ``upcoming_changes``.
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
|/| | |
ENH: Add where argument to np.mean
|
| | |
| | |
| | |
| | |
| | |
| | | |
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; closes #16490
* update quickstart.rst
* add round trip pickle test
* move _ArrayMemoryError picking test
|
|\ \ \
| | | |
| | | | |
DOC: Fix up links, code blocks of release note fragments
|
| | | |
| | | |
| | | |
| | | |
| | | | |
This should fix hopefully all broken links and missing code blocks.
I also slight shortened one of the very long titles.
|
|\ \ \ \
| |/ / /
|/| | | |
NEP: Add NEP-35 instructions on reading like= downstream
|
| | | |
| | | |
| | | | |
Co-authored-by: Sebastian Berg <sebastian@sipsolutions.net>
|