| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add a special case to the implementation of ndarray.__mul__ et al. that
refuses to work on other objects that are not ndarray subclasses and
implement both __numpy_ufunc__ and __r*__.
This way, execution passes first to the custom __r*__ method, which
makes it possible to have e.g. __mul__ and np.multiply do different
things.
Additionally, disable one __array_priority__ special case handling when
also __numpy_ufunc__ is defined.
|
|\
| |
| | |
DOC: Notes on backporting.
|
| | |
|
|/
|
|
|
| |
Order highlights by significance. This is a subjective judgement.
Mention the linalg enhancements and illustrate with an example.
|
|
|
|
|
| |
Add the new nan functions and linear algebra gufuncs to highlights.
Tweak some rst formatting.
|
|
|
|
| |
closes gh-3842, gh-3843
|
| |
|
| |
|
| |
|
|
|
|
| |
its nothing you should need to worry about when porting to 1.8
|
| |
|
| |
|
|
|
|
| |
Mention that they were removed in 1.9.0.
|
|\
| |
| | |
DOC: improve __numpy_ufunc__ documentation
|
| |
| |
| |
| |
| | |
Cross-reference it from Ufunc documentation and mention the version it
was added.
|
|\ \
| | |
| | | |
ENH: percentile function with additional parameters and vectorization
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The percentile function was enhanced by adding limit and interpolation
parameters to give it similar functionality to SciPy's stats.scoreatpercentile
function. In addition the function was vecorized along q and rewritten to
use the partition method for better performance.
|
|\ \ \
| |_|/
|/| | |
ENH: Add dtype parameter to linspace and logspace functions.
|
| |/
| |
| |
| |
| |
| | |
Many NumPy functions such as arange allow users to define the dtype of the
returned type with a dtype parameter. This adds this same functionality
to the logspace and linspace functions.
|
|\ \
| | |
| | | |
DOC: add isclose and partition to reference and link some docs
|
| |/
| |
| |
| | |
also drop sometrue/alltrue link, its equivalent to any/all.
|
|/
|
|
| |
Closes #3708.
|
|\
| |
| | |
Ufunc Overrides
|
| | |
|
| | |
|
|/ |
|
| |
|
|
|
|
|
|
|
| |
Run the 2to3 ws_comma fixer on *.py files. Some lines are now too long
and will need to be broken at some point. OTOH, some lines were already
too long and need to be broken at some point. Now seems as good a time
as any to do this with open PRs at a minimum.
|
|
|
|
| |
Now is as good a time as any with open PR's at a low.
|
|
|
|
|
| |
Note that the numpydoc sphinx extensions now reside in their own
repository.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
Add remarks on changes due in the next release and FutureWarnings.
Add notes on the new functions in the array C-API.
Add notes on the new function in th ufunc C-API.
|
|\
| |
| | |
DOC: Update HOWTO_RELEASE.rst.txt.
|
| |
| |
| |
| |
| |
| | |
The current version is out of date. Supported Python versions have
changed, the buildbot is no longer reachable, some links are dead,
etc.
|
|/
|
|
|
|
|
|
| |
The recent Python 3 fix adding encoding="utf-8" to the open function
fails on Python 2 because the encoding keyword is not defined. The
solution is to use io.open, which is available for Python 2.6 and 2.7
and is an alias for open when Python >= 3.0. It is reputed to be slow
when running in 2.6, but that should not be a problem.
|
|\
| |
| | |
Add nanmean, nanvar, and nanstd functions.
|
| |
| |
| |
| |
| |
| | |
Fix typos and clarify some explanations. Document the changes in the return
values of nanargmin and nanargmax for all-NaN slices in the 1.8.0 release
notes.
|
| | |
|
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
nanmax, nanmin
--------------
Add out and keepdims keywords.
nanargmin, nanargmax
--------------------
A NanWarning is raised if an all NaN slice detected. For all such
slices np.iingo(np.intp).min is returned as the index value.
nansum
------
The keywords dtype, out, and keepdims are added.
A FutureWarning is raised, as in the future the mean of an empty
slice after NaN replacement will be 0 instead of the current NaN.
nanmean, nanvar, nanstd
-----------------------
For all, if the input array is of inexact type then the dtype and out
parameters must be of inexact type if specified. That insures that NaNs
can be returned when appropriate.
The nanmean function detects empty slices after NaN replacement and
raises a NanWarning. NaN is returned as the value for all such slices.
The nanmean and nanstd functions detect degrees of freedom <= 0 after
NaN replacement and raise a NanWarning. NaN is returned as the value for
all such slices.
|
|\ \
| | |
| | | |
DOC: Remove references to diagonal changes in 1.8.
|
| |/
| |
| |
| |
| |
| |
| | |
Not happening. Also remove reference to selecting multiple fields out of
an array returning a view from 1.8.0 release notes.
Closes #3228.
|
| |
| |
| |
| | |
Closes #3389.
|
|/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The default (ascii) encoding breaks:
python3.3 postprocess.py html build/html/*.html
Traceback (most recent call last):
File "postprocess.py", line 59, in <module>
main()
File "postprocess.py", line 27, in main
lines = process_html(fn, f.readlines())
File "/usr/lib64/python3.3/encodings/ascii.py", line 26, in
return codecs.ascii_decode(input, self.errors)[0]
UnicodeDecodeError: 'ascii' codec can't decode byte 0xc2 in
2309: ordinal not in range(128)
|
|
|
|
|
|
| |
Partitioning is sufficient to obtain the median and is much faster.
In the case of overwrite_input=True the resulting array will not be
fully sorted anymore.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
A partition sorts the kth element into its sorted order and moves all
smaller elements before the kth element and all equal or greater
elements behind it.
The ordering of all elements in the partitions is undefined.
It is implemented via the introselection algorithm which has worst case
linear complexity compared to a full sort that has linearithmic
complexity.
The introselect algorithm uses a quickselect with median of three pivot
and falls back to a quickselect with median of median of five pivot if
no sufficient progress is made.
The pivots used during the search for the wanted kth element can
optionally be stored and reused for further partitionings of the array.
This is used by the python interface if an array of kth is provided to
the partitions function. This improves the performance of median and
which need to select two elements if the size of the array is even. A
percentile function interpolating between values also profits from this.
String selection is implemented in terms of quicksort which has the same
properties as a selection for now.
|
|
|
|
| |
Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
|
| |
|
|\
| |
| | |
Documentation fixes for `basics.io.genfromtxt.rst` and `creation.py`
|