summaryrefslogtreecommitdiff
path: root/doc/source/reference
Commit message (Collapse)AuthorAgeFilesLines
...
* BUG: fix native-only long long checkJulian Taylor2014-01-041-2/+2
| | | | | | Caused all long longs to be required native only in memoryviews. NPY_SIZEOF_LONG_LONG never existed, replace documentation with existing NPY_SIZEOF_LONGLONG and code with a sizeof(npy_longlong).
* DOC: matrix_rankalex2013-12-261-0/+1
|
* Fix the doc of PyArray_ArgMax and PyArray_ArgMinFrederic2013-12-171-2/+2
|
* ENH: avoid expensive clears in fenv functionsJulian Taylor2013-11-062-0/+43
| | | | | | | | | | Clearing is 50-100 times more expensive than checking on x86, so check if there is anything needs to be cleared first. This speeds up scalar operations by 10%-20%. Based on Arink Verma code in #3739. Implement the functions as new C-API functions npy_get_floatstatus and npy_clear_floatstatus in npy_math.
* BUG: core: ensure __r*__ has precedence over __numpy_ufunc__Pauli Virtanen2013-10-191-0/+29
| | | | | | | | | | | | | 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: fix signature of NpyIter_GetIterNext in capi docJulian Taylor2013-10-051-1/+1
|
* DEP, DOC: Undocument numarray and numeric.Charles Harris2013-09-232-8/+8
| | | | Mention that they were removed in 1.9.0.
* DOC: improve __numpy_ufunc__ documentationPauli Virtanen2013-09-152-13/+33
| | | | | Cross-reference it from Ufunc documentation and mention the version it was added.
* Merge pull request #3741 from juliantaylor/doc-updateCharles Harris2013-09-142-0/+3
|\ | | | | DOC: add isclose and partition to reference and link some docs
| * DOC: add isclose and partition to reference and link some docsJulian Taylor2013-09-142-0/+3
| | | | | | | | also drop sometrue/alltrue link, its equivalent to any/all.
* | DOC: Make savez_compressed show up in the documentation.Charles Harris2013-09-131-0/+1
|/ | | | Closes #3708.
* DOC: Add NEP and documentation for ufunc overrides.Blake Griffith2013-08-311-0/+34
|
* STY: Giant whitespace cleanup.Charles Harris2013-08-1814-26/+16
| | | | Now is as good a time as any with open PR's at a low.
* Update docsJay Bourque2013-08-161-3/+4
|
* Add documentation for new 'at' ufunc methodJay Bourque2013-08-161-0/+6
|
* MAINT: Refactor nanfunctions.Charles Harris2013-08-121-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* ENH: add quickselect algorithm and expose it via partitionJulian Taylor2013-08-122-9/+32
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* BUG: Document that numpy.int_ doesn't inherit from int on Py3kYury V. Zaytsev2013-08-101-2/+7
| | | | Signed-off-by: Yury V. Zaytsev <yury@shurup.com>
* Fix documentation description of loop spam in interactive interpreterEric Price2013-08-101-3/+3
|
* Merge branch 'numpy-swig' into gh-3451Charles Harris2013-07-292-43/+171
|\ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
| * Added more mentions of the SuperTensor tests and corrected the number of ↵Egor Zindy2013-06-162-8/+10
| | | | | | | | typemaps and tests (currently 1427 unit tests passed with 'make test': 372+324+324+324+40+19+24)
| * Updated numpy.i testing documentationBill Spotz2013-03-141-3/+3
| | | | | | | | | | | | Simple updates to include proper statistics on the number of typemap signatures supported and the number of individual unit tests implemented.
| * Updated the numpy.i documentationBill Spotz2013-03-141-37/+163
| | | | | | | | | | The RST documentation file is now consistent with the C macros, C functions, and list of typemap signatures of the latest numpy.i file.
* | Corrected typos in documentation for PyArray_GETPTR1.Daniel2013-07-011-7/+7
| |
* | Fix minor typos in Polynomial class documentationKumar Appaiah2013-06-151-17/+17
| | | | | | | | Signed-Off-By: Kumar Appaiah <a.kumar@alumni.iitm.ac.in>
* | DOC: add fmax/fmin to ufuncs list and math routines listendolith2013-05-192-0/+6
| |
* | Another name change to RegisterLoopForDescrJay Bourque2013-05-141-1/+1
| |
* | Change name of RegisterLoopForStructType to RegisterLoopByDescrJay Bourque2013-05-141-3/+5
| |
* | Update c-api documentationJay Bourque2013-05-141-0/+8
| |
* | Merge pull request #2701 from seberg/indexingseberg2013-05-111-2/+2
|\ \ | | | | | | Fancy Indexing enhancements and bug fixes
| * | DOC: Advanced indexing using np.newaxesSebastian Berg2013-04-121-2/+2
| | | | | | | | | | | | | | | Mention in release notes and remove documentation which may give the idea it cannot be used with advanced indexing.
* | | Update c api documentationJay Bourque2013-05-061-0/+10
| | |
* | | Merge pull request #3220 from pv/linalg-guCharles Harris2013-04-171-0/+18
|\ \ \ | | | | | | | | Add generalized ufunc linalg functions and make numpy.linalg use them
| * | | DOC: document the behavior of generalized N-dim linear algebra functionsPauli Virtanen2013-04-101-0/+18
| |/ /
* | | DOC: Document NPY_RELAXED_STRIDES_CHECKING changesSebastian Berg2013-04-113-14/+68
|/ / | | | | | | | | | | This includes documentation in the release notes, as well as the reference guide and smaller corrections. Thanks to Nathaniel for major rewriting this.
* | Merge pull request #3104 from seberg/nditer-allow-0dCharles Harris2013-04-011-3/+8
|\ \ | | | | | | Make AdvancedNew iter more 0-d aware
| * | DOC: Add documentation clarifying the use of oa_ndimSebastian Berg2013-03-031-3/+8
| | |
* | | 2to3: Replace xrange by range and use list(range(...)) where neededCharles Harris2013-03-271-1/+1
| |/ |/| | | | | | | | | | | | | | | | | | | | | | | | | | | In python3 range is an iterator and `xrange` has been removed. This has two consequence for code: 1) Where a list is needed `list(range(...))` must be used. 2) `xrange` must be replaced by `range` Both of these changes also work in python2 and this patch makes both. There are three places fixed that do not need it, but I left them in so that the result would be `xrange` clean. Closes #3092
* | DOC: Add mention of PyArray_SetBaseObject stealing a referenceMark Wiebe2013-03-071-2/+4
|/
* DOC: Remove documentation of non-existing advanced iter NA flags.Sebastian Berg2013-03-011-29/+0
|
* FIX: Transition scheme for safer in-place ufunc operationsNathaniel J. Smith2012-09-201-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | In numpy 1.6 and earlier, if you do np.add(int_arr, float_arr, out=int_arr) or int_arr += float_arr then the result will be silently truncated to integer values. This often produces bugs, because it's easy to accidentally end up with an integer array and not realize it. Therefore, there seems to be consensus that we should switch to using same_kind casting by default for in-place ufunc operations. However, just switching this (as was done initially during the 1.7 development cycle) breaks a lot of code, which is rude and violates our deprecation policy. This commit instead adds a special temporary casting rule which acts like "unsafe", but also checks whether each operation would be allowed under "same_kind" rules and issues a DeprecationWarning if not. It also moves NPY_DEFAULT_ASSIGN_CASTING into the formal API instead of leaving it as a #define. This way we can change it later, and any code which references it and is compiled against this version of numpy will automatically switch to whatever we change it too. This avoids the situation where we want to remove the temporary magic value we're using to create DeprecationWarnings now, but can't because it would be an ABI break.
* Added entries for assert_allclose, assert_array_almost_equal_nulp, and ↵Matt Davis2012-07-201-0/+3
| | | | assert_array_max_ulp into the numpy testing reference documentation.
* Merge pull request #350 from jayvius/get-view2Travis E. Oliphant2012-07-171-0/+10
|\ | | | | Add transition code for returning view when selecting subset of fields
| * change DeprecationWarning to FutureWarningJay Bourque2012-07-171-1/+1
| |
| * Updated reference docs for DeprecationWarningJay Bourque2012-07-171-0/+10
| |
* | Merge pull request #327 from teoliphant/restore_apiTravis E. Oliphant2012-07-171-22/+29
|\ \ | |/ |/| Restore ability to not include semi-colons.
| * DOC: Update API description with suggestions from charris.Travis E. Oliphant2012-07-171-8/+5
| |
| * DOC: update language of C-API deprecations.Travis E. Oliphant2012-07-171-5/+7
| |
| * Fix-up deprecations language.Travis E. Oliphant2012-07-111-5/+13
| |
| * Fix the deprecations language.Travis E. Oliphant2012-07-111-19/+19
| |