| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|/ / /
| | |
| | |
| | |
| | |
| | | |
This mixin class provides an easy way to implement arithmetic operators
that defer to __array_ufunc__ like numpy.ndarray in non-ndarray
subclasses.
|
| | |
| | |
| | |
| | |
| | | |
If nx and ny are the bin counts (as stated in the bins argument's text), then the return H has indeed shape (nx, ny). However, the returned xedges and yedges will then have shape (nx+1,) and (ny+1,) respectively.
Fixes #8979
|
|\ \ \
| | | |
| | | | |
TST/BUG: fromfile - fix test and expose bug with io class argument
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
This bug only manifests itself in the Python 2 code path.
Falls back to the current Python 3 code path also on Python 2 because
the Python 3 code path is written precisely to handle this situation.
Also fix tests, and clarify in the documentation that the current
implementation requires the stream to be seekable.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Fix double-wrapping of object scalars
|
| | |_|/
| |/| |
| | | |
| | | | |
Fixes #8642
|
| | | | |
|
|\ \ \ \
| | | | |
| | | | | |
DOC: Mention that expand_dims and squeeze are inverses
|
| | | | |
| | | | |
| | | | |
| | | | | |
[ci skip]
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
This fixes an omission where duplicate axes would only be detected when positive
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
This also means that its axis argument invokes operator.index like
others do.
_validate_axis currently accepts lists of axes, which is a bug.
|
| | | | |
| | | | |
| | | | | |
This adds to the documentation on `dstack` the notes from `hstack` and `vstack` about dimensionality requirements.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
API: Return scalars for scalar inputs to np.real/imag
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Closes gh-8386.
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
ENH: Allow bincount(..., minlength=0).
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Since we only need to support python 2, we can remove any case where we just
pass a single string literal and use the b prefix instead.
What we can't do is transform asbytes("tests %d" % num), because %-formatting
fails on bytes in python 3.x < 3.5.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: tidy up some of npyio
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This file had two functions called flatten_dtype, which did similar but
different things.
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | |_|_|_|_|/
| |/| | | | | |
TST: Prove that poly1d coeffs are immutable
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Remove the comment suggesting that they are not
|
|\ \ \ \ \ \ \
| |/ / / / / /
| | / / / / /
| |/ / / / /
|/| | | | | |
BUG: Fix scipy incompatibility with cleanup to poly1d
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
`poly.coeffs = 1` has always failed with a strong exception guarantee.
However, `poly.coeffs += 1` would both change the state and fail.
Now both fail without affecting the value.
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Scipy needs `.__dict__['coeffs']` to work, so we can't call the member _coeffs
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Add "np." prefix to meshgrid calls for consistency
|
|\ \ \ \ \ \
| |/ / / / /
| | | | | | |
BUG: Prevent crash in poly1d.__eq__
|
| | | | | | |
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Presumably written long before @property existed. This means we don't need
__dict__ everywhere
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes #8760
|
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
BUG: Fix np.average for object arrays
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Fixes #8696
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Previously, these had different rules for unmasking values, and even different
arguments to decide how to do so.
Fixes #8664
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Including missing backticks around link, included a missing colon in
example and removed excessive indentation before "doctest skip directive".
[skip ci]
|
|\ \ \ \
| | | | |
| | | | | |
ENH: add dtype.ndim
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Added note to np.diff
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
Also noted that type is preserved.
[ci skip]
|
|/ / / /
| | | |
| | | |
| | | | |
Closes #8687.
|
|\ \ \ \
| | | | |
| | | | | |
ENH: Allow for an in-place nan_to_num conversion
|
| | |/ /
| |/| | |
|
|\ \ \ \
| | | | |
| | | | | |
MAINT: We can now rely on itertools.izip_longest existing
|
| | | | | |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
DOC: Add more examples for np.c_
|
| | | | | | |
|
| |/ / / /
| | | | |
| | | | |
| | | | | |
I mostly use that object to bind 1D arrays as columns, so I added an example for that use case.
|