| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
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`
|
| |
| |
| |
| |
| |
| |
| | |
Remove trailing whitespace.
Break long lines.
Fix some indentation.
Use the `::` directive to indicate interactive examples.
|
| |
| |
| |
| |
| | |
Add missing part of usecols negative index explanation and other
minor redaction fixes.
|
|/ |
|
|\
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
* numpy-swig:
Added more mentions of the SuperTensor tests and corrected the number of typemaps and tests (currently 1427 unit tests passed with 'make test': 372+324+324+324+40+19+24)
Added mention of the SuperTensor tests in the README file
Removed 'static' keyword from pyfragments.swg altoghether. I've had the following errors In function ‘SWIG_AsVal_long’: error: initialiser element is not constant In function ‘SWIG_AsVal_unsigned_SS_long’: error: initialiser element is not constant, BOTH in Windows/MinGW and Linux when compiling with gcc
Added tests for 4D tensors. Now using a consistant cubes,slices,rows,columns index order everywhere.
cleaned-up loop indexes in Tensor.cxx
cosmetic changes to numpy.i
Fixed the capsule / cobject memory destructor. Added types to deal with lists of arrays and lists of tensors as input and inplace types.
removed the note about testResize1 failing in testArray.py
fixed the testResize1 test in testArray.py -- Changed order of the resize arguments in Array2.h and replaced len(XXXnumpyarray) with XXXnumpyarray.size
Minor adjustments to numpy.i
Updated numpy.i testing documentation
Updated the numpy.i documentation
Initialize all DATA_TYPE* data_temp variables to NULL
Added Egor's ARGOUTVIEWM_ARRAY3 typemaps
Re-instated a Python 3 fix
Removed doc from list of sub-directories
Upgrade numpy.i
Got rid of a unit test
Conflicts:
doc/sphinxext
doc/swig/test/testFortran.py
|
| |
| |
| |
| | |
typemaps and tests (currently 1427 unit tests passed with 'make test': 372+324+324+324+40+19+24)
|
| | |
|
| |
| |
| |
| | |
following errors In function ‘SWIG_AsVal_long’: error: initialiser element is not constant In function ‘SWIG_AsVal_unsigned_SS_long’: error: initialiser element is not constant, BOTH in Windows/MinGW and Linux when compiling with gcc
|
| |
| |
| |
| | |
index order everywhere.
|
| | |
|
| | |
|
| |\ |
|
| | |
| | |
| | |
| | | |
lists of arrays and lists of tensors as input and inplace types.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This includes so formatting adjustments, the removal of two unused
arguments for the make_fortran() function, fixing the number of
supported typemap signatures, including the ARGOUT_ARRAY4 typemap
signature in the comments section, and renumbering the typemap
signatures.
|