summaryrefslogtreecommitdiff
path: root/doc/source/reference/c-api.array.rst
Commit message (Collapse)AuthorAgeFilesLines
...
* DOC: Small c api doc fix for PyArray_Max.Frederic Bastien2016-10-171-1/+2
| | | | [ci skip]
* DOC: change version references from x.y to x.y.zPierre de Buyl2016-09-071-1/+1
|
* change all non-code instances of Numpy to NumPyPierre de Buyl2016-09-061-1/+1
| | | | | | | | | Instances remain for NumpyVersion and Numpy.rec.fromarrays that are references to code. Release notes were left unchanged. see issue #7986
* DOC: Updates to documentation from perusing it in detail.Joseph Fox-Rabinovitz2016-03-141-1/+1
| | | | [ci skip]
* MAINT: Fix typos in docsDongjoon Hyun2016-01-251-1/+1
|
* DOC: fixed #6525Yifan Li2015-10-191-8/+8
|
* DOC: Fixed a typo at line 289 at c-api.array.rstNicolas Calle2015-10-191-1/+1
| | | | Fixes #6521
* DOC: Fix outdated sphinx directives.Charles Harris2015-07-011-683/+683
| | | | | | | Examples :cdata: -> :c:data: .. cfunction:: -> .. c:function::
* DOC: Update docs for PyArray_FromInterface/PyArray_FromStructInterfacejaimefrio2015-01-281-7/+5
|
* Merge pull request #5249 from immerrr/add-missing-scalar-func-docsCharles Harris2015-01-261-3/+18
|\ | | | | DOC: add documentation for some scalar checks
| * DOC: add documentation for some scalar checksimmerrr2014-11-291-3/+18
| | | | | | | | DOC: Mention that PyArray_Return steals a reference to arr
* | DOC: improve record/structured array nomenclature & guideAllan Haldane2015-01-221-7/+7
| | | | | | | | | | | | | | | | | | | | | | This update adds a section better describing record arrays in the user guide (numpy/doc/structured_arrays.py). It also corrects nomenclature, such that "structured array" refers to ndarrays with structured dtype, "record array" refers to modified ndarrays as created by np.rec.array, and "recarray" refers to ndarrays viewed as np.recarray. See the note at the end of the structured array user guide.
* | DOC: fix typo in array flag docs.Eric Moore2014-12-191-1/+1
| |
* | DOC: Update the docs for the C API to reflect the change in return type of ↵Chris Kerr2014-11-171-1/+4
|/ | | | PyArray_ITEMSIZE
* DOC: document NPY_BEGIN_THREADS_THRESHOLDEDjaimefrio2014-09-251-0/+6
|
* DOC: Update PyArray_SearchSorted docs in c-api.array.rstjaimefrio2014-09-241-11/+20
|
* DOC: fix signature of PyArray_NewShape in C-API docsJulian Taylor2014-06-111-3/+4
| | | | closes gh-4579
* MAINT: add a few nonnull attributes to array creation functionsJulian Taylor2014-04-241-1/+1
| | | | | also fix wrong capi documentation of PyArray_NewFromDescr stating it accepts NULL dtype while it does not.
* DOC: suggest definition of unique symbol in .hHans Meine2014-03-161-1/+5
| | | | I find it much more convenient to define the PY_ARRAY_UNIQUE_SYMBOL in a header file #included by all files of the extension (than to repeat its definition in each and every file).
* BUG: Fix promote_types, can_cast, as astype issuesJay Bourque2014-02-251-2/+6
| | | | | | - promote_types does not return correct string size for integer and string arguments. Fix so that integer and string types are promoted to string type that is long enough to hold integer type safely cast to string. - can_cast incorrectly returns True for certain integer and string types. Fix so that can_cast only returns True if string type is long enough to hold integer type safely cast to string. - calling astype to convert integer to string should fail if string type is not long enough to hold integer converted to string and casting argument is set to "safe".
* Update c-api.array.rstMarc-Alexandre Côté2014-02-171-0/+12
| | | Add a note explaining the ``out`` parameter of some functions.
* DOC: Typo, replace PyArrayDescr_Check by PyArray_DescrCheck.Charles Harris2014-02-161-1/+1
| | | | | | Found by trac user komnomnomnom. Closes #588.
* ENH: add tobytes and stop using tostring in documentationJulian Taylor2014-02-111-1/+1
| | | | | | | tostring returns bytes which are not equal to string, so provide a tobytes function alias. tostring does not emit a deprecation warning yet so rdepends do not need to check two names to support older versions of numpy without warnings.
* Fix the doc of PyArray_ArgMax and PyArray_ArgMinFrederic2013-12-171-2/+2
|
* ENH: add quickselect algorithm and expose it via partitionJulian Taylor2013-08-121-0/+21
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* Corrected typos in documentation for PyArray_GETPTR1.Daniel2013-07-011-7/+7
|
* DOC: Document NPY_RELAXED_STRIDES_CHECKING changesSebastian Berg2013-04-111-8/+24
| | | | | | This includes documentation in the release notes, as well as the reference guide and smaller corrections. Thanks to Nathaniel for major rewriting this.
* DOC: Add mention of PyArray_SetBaseObject stealing a referenceMark Wiebe2013-03-071-2/+4
|
* better new doc sentence following code review.Frederic2012-07-161-1/+1
|
* Add doc for PyArray_FILLWBYTE to tell the ndarray must be c contiguous.Frederic2012-07-061-0/+1
|
* Remove maskna API from ndarray, and all (and only) the code supporting itNathaniel J. Smith2012-06-161-114/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The original masked-NA-NEP branch contained a large number of changes in addition to the core NA support. For example: - ufunc.__call__ support for where= argument - nditer support for arbitrary masks (in support of where=) - ufunc.reduce support for simultaneous reduction over multiple axes - a new "array assignment API" - ndarray.diagonal() returning a view in all cases - bug-fixes in __array_priority__ handling - datetime test changes etc. There's no consensus yet on what should be done with the maskna-related part of this branch, but the rest is generally useful and uncontroversial, so the goal of this branch is to identify exactly which code changes are involved in maskna support. The basic strategy used to create this patch was: - Remove the new masking-related fields from ndarray, so no arrays are masked - Go through and remove all the code that this makes dead/inaccessible/irrelevant, in a largely mechanical fashion. So for example, if I saw 'if (PyArray_HASMASK(a)) { ... }' then that whole block was obviously just dead code if no arrays have masks, and I removed it. Likewise for function arguments like skipna that are useless if there aren't any NAs to skip. This changed the signature of a number of functions that were newly exposed in the numpy public API. I've removed all such functions from the public API, since releasing them with the NA-less signature in 1.7 would create pointless compatibility hassles later if and when we add back the NA-related functionality. Most such functions are removed by this commit; the exception is PyArray_ReduceWrapper, which requires more extensive surgery, and will be handled in followup commits. I also removed the new ndarray.setasflat method. Reason: a comment noted that the only reason this was added was to allow easier testing of one branch of PyArray_CopyAsFlat. That branch is now the main branch, so that isn't an issue. Nonetheless this function is arguably useful, so perhaps it should have remained, but I judged that since numpy's API is already hairier than we would like, it's not a good idea to add extra hair "just in case". (Also AFAICT the test for this method in test_maskna was actually incorrect, as noted here: https://github.com/njsmith/numpyNEP/blob/master/numpyNEP.py so I'm not confident that it ever worked in master, though I haven't had a chance to follow-up on this.) I also removed numpy.count_reduce_items, since without skipna it became trivial. I believe that these are the only exceptions to the "remove dead code" strategy.
* Stress that all array creation C functions steals a reference to descr.Francesc Alted2012-05-041-0/+4
|
* DOC: Replace references to macros in old_defines with new.Charles Harris2012-02-041-6/+6
| | | | | Also remove swig support for numpy < 1 from numpy.i since it expects the old macros.
* ENH: missingdata: Make PyArray_Converter and PyArray_OutputConverter safer ↵Mark Wiebe2011-08-271-0/+24
| | | | | | | | for legacy code These functions now reject inputs with NA, and there are alternative functions PyArray_AllowNAConverter and PyArray_OutputAllowNAConverter that functions should use when they intend to support NA.
* DOC: missingdata: Add example of a C-API function supporting NA masksMark Wiebe2011-08-271-44/+6
|
* DOC: missingdata: Documenting C API for NA-masked arraysMark Wiebe2011-08-271-0/+3
|
* ENH: missingdata: Rewrite PyArray_Concatenate to work with NA masksMark Wiebe2011-08-271-12/+14
| | | | | It should also have less memory usage for heterogeneous inputs, because it no longer makes extra copies in that case.
* DOC: missingdata: Add some NA mask info to the documentationMark Wiebe2011-08-271-50/+181
|
* DOC: core: Document the PyArray_SetBaseObject functionMark Wiebe2011-07-221-1/+26
|
* DOC: core: Document the mask-based nditer flags and new inline mask functionsMark Wiebe2011-07-111-1/+44
|
* ENH: core: Add np.copyto, PyArray_MaskedMoveInto, PyArray_MaskedCopyIntoMark Wiebe2011-07-081-0/+8
| | | | | | | | These functions expose masked copying routines, with and without handling of overlapping data. Also deprecated the np.putmask and PyArray_PutMask functions, because np.copyto supercedes their functionality. This will need to be discussed on the list during the pull request review.
* DOC: c-api: Update to reflect array flag namespace changeMark Wiebe2011-07-061-110/+114
|
* DOC: Document the ufunc 'where=' parameter and the NpyAuxData C API mechanismMark Wiebe2011-07-061-0/+91
|
* DOC: Improve the documentation about type promotionMark Wiebe2011-04-221-4/+40
|
* ENH: Add 'subok' parameter to PyArray_NewLikeArray, np.empty_like, ↵Mark Wiebe2011-03-151-1/+5
| | | | | | | np.zeros_like, and np.ones_like This way, the sub-type can be avoided if necessary. This helps mitigate, but doesn't fix, ticket #1753, by allowing "b = np.empty_like(a, subok=False)".
* DOC: Document constructor API change, and fill in some more missing ↵Mark Wiebe2011-03-131-4/+27
| | | | documentation
* BUG: For compatibility with 1.5, revert to permitting limited broadcasting ↵Mark Wiebe2011-03-111-1/+1
| | | | | | | | | of the assignment output This change got Travis's -10 veto for 1.6. An unfortunate consequence of reverting this is that some of the broadcasting error messages get worse, but they're still no worse than in 1.5.
* DOC: Replace 'deprecated' with 'superceded' in a few places, fix a typo.Mark Wiebe2011-03-101-15/+16
|
* DOC: Add some missing documentation, hyper-link the iterator documentationMark Wiebe2011-03-101-18/+159
|
* DOC: add some more wiki edits, of rst files in ref/user guide.rgommers2011-03-021-5/+5
|