summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #13334 from eric-wieser/fix-1-field-unstructuredMatti Picus2019-04-251-0/+8
|\ | | | | BUG: Fix structured_to_unstructured on single-field types
| * DOC: Add 1.17 release noteEric Wieser2019-04-231-0/+8
| |
* | ENH: Add shape to *_like() array creation (#13046)Peter Andreas Entschev2019-04-251-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: Added shape argument to *_like() array creation functions * ENH: C backend adjustments for shape argument on *_like() * TST: Added test for shape argument in *_like() functions * ENH: Added PyArray_NewLikeArrayWithShape() This change maintains backwards compatibility, rather than passing new arguments to PyArray_NewLikeArray(). * BUG: Fix for PyArray_NewLikeArrayWithShape strides and ndim == 0 Arrays created with new shapes should not take into consideration the original array's stride, and ndim == 0 should not be a case to ignore a new shape, as the caller may request a 0d array. * REL: Updates for C-API, version 1.17.x * Add comments to cversions.txt (new PyArray_NewLikeArrayWithShape function) * Increment C_API_VERSION to 1.17 in setup_common.py * Revert "REL: Updates for C-API, version 1.17.x" This reverts commit 807f512ebeb7797ad374d845e41015948afcc708. * Revert exposing PyArray_NewLikeArrayWithShape on C-API * DOC: fix versionadded for *_like() shape argument * STY: add missing spaces in array initializers * ENH: empty_like raises ValueError This occurs when shape is defined and number of dimensions match but order is 'K'. * TST: test for exception of *_like() functions * DOC: release note for shape argument in *_like() functions * DOC: fix *_like() documentation on raises * BUG: *_like() raises for non-C/F-layout arrays * TST: change *_like() shapes to prevent NPY_RELAXED_STRIDE_DEBUG=1 failure * Move empty_like() exception to C implementation * Update *_like() ValueError documentation * Rearrange stride computation for *_like() if new shape and order='K' * Change handling of order= for *_like() - If order='K' try to keep, otherwise, order='C' is implied - Do not raise ValueError anymore * Fix *_like() tests
* | DOC: fix typos in dev/indexmattip2019-04-251-5/+3
| |
* | Merge pull request #13367 from mattip/dev-guideRalf Gommers2019-04-238-65/+247
|\ \ | |/ |/| DOC: reorganize developer docs, use scikit-image as a base for change
| * DOC: changes from reviewmattip2019-04-233-140/+33
| |
| * DOC: reorganize developer docs, use scikit-image as a base for changemattip2019-04-218-58/+347
| |
* | Merge pull request #13371 from eric-wieser/__floor__-and-__ceil__Charles Harris2019-04-221-0/+6
|\ \ | | | | | | BUG/ENH: Make floor, ceil, and trunc call the matching special methods
| * | BUG/ENH: Make floor, ceil, and trunc call the matching special methodsEric Wieser2019-04-191-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously `np.ceil` would call `o.ceil()` on each element of an object array. This is inconsistent with the builtin python way of handling this, calling `o.__ceil__()`. This changes these three functions to use the corresponding functions in the `math` module, which do the special method lookup. As a result, they now work on arrays of `Fraction` and `Decimal` objects.
* | | MAINT, DOC: Post 1.16.3 release updates.Charles Harris2019-04-213-0/+102
| | | | | | | | | | | | | | | | | | - Add 1.16.3 release notes - Add 1.16.3 changelog - Update mailmap
* | | DOC: adding release notes for 1.17.0Raghuveer Devulapalli2019-04-191-0/+6
| |/ |/|
* | Merge pull request #10741 from eric-wieser/as_integer_ratioTyler Reddy2019-04-181-0/+6
|\ \ | | | | | | ENH: Implement `np.floating.as_integer_ratio`
| * | ENH: Implement `np.floating.as_integer_ratio`Eric Wieser2019-04-101-0/+6
| | | | | | | | | | | | This matches the builtin `float.as_integer_ratio` and (in recent python versions) `int.as_integer_ratio`.
* | | Merge pull request #13218 from debsankha/isfinite-datetimeCharles Harris2019-04-181-0/+5
|\ \ \ | |_|/ |/| | ENH: `isfinite` support for `datetime64` and `timedelta64`
| * | Merge branch 'master' into isfinite-datetimeMatti Picus2019-04-105-6/+38
| |\ \ | | |/
| * | DOC: added release note for `isfinite` support forDebsankha Manik2019-04-071-0/+4
| | | | | | | | | | | | `datetime64` and `timedelta64`
* | | Merge pull request #12889 from ivanov/no-pickles-for-youCharles Harris2019-04-161-0/+5
|\ \ \ | | | | | | | | BUG: Make allow_pickle=False the default for loading
| * | | BUG: load fails when using pickle without allow_pickle=TruePaul Ivanov2019-04-161-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | a partial mitigation of #12759. see also https://nvd.nist.gov/vuln/detail/CVE-2019-6446
* | | | Merge pull request #13337 from kritisingh1/conjMatti Picus2019-04-162-0/+2
|\ \ \ \ | |/ / / |/| | | DOC: Add docstrings for consistency in aliases
| * | | DOC: Add docstrings for consistency in aliaseskritisingh12019-04-162-0/+2
| | | |
* | | | DOC: Add as_ctypes_type to the documentationEric Wieser2019-04-153-4/+5
|/ / / | | | | | | | | | | | | | | | | | | | | | This is mentioned in the release notes, so probably should be discoverable. Change those mentions to links. Fix the docstring to not cause sphinx to emit warnings.
* | | DOC: remove misplaced section at bottom of governance people pageRalf Gommers2019-04-121-5/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | Thanks to @mattip for pointing this out. The removed bit is a copy of what's on the main governance page (where it belongs). So just deleting here. [ci skip] [skip ci] **no ci**
* | | DOC: list Quansight (company) rather than Quansight Labs (program/division)Ralf Gommers2019-04-112-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | as Institutional Partner. Also fix a broken link I found. [ci skip] [skip ci] **no ci**
* | | DOC: update people under BIDS Institutional Partner entry.Ralf Gommers2019-04-111-1/+1
| | | | | | | | | | | | [ci skip] [skip ci]
* | | DOC: add Quansight Labs as an Institutional PartnerRalf Gommers2019-04-111-1/+3
| |/ |/| | | | | [ci skip] [skip ci]
* | Merge pull request #13219 from kikocorreoso/nan_to_num-enhancementAllan Haldane2019-04-091-0/+6
|\ \ | | | | | | ENH: nan_to_num keyword addition (was #9355)
| * | fix (``code``s) sphinx parse warningkikocorreoso2019-04-031-1/+1
| | |
| * | Update release noteskikocorreoso2019-04-031-0/+6
| |/ | | | | Update release notes to include "nan_to_num" information.
* | DOC: update numpydoc to latest mastermattip2019-04-091-0/+0
| |
* | DOC : PyArray_Descr.names undocumented (#13234)vrindaaa2019-04-031-3/+25
| | | | | | * Updating the definition of PyArray_Descr struct
* | DOC: Correctly document the minimum required Sphinx version (#13231)Kriti Singh2019-04-011-1/+1
| |
* | Adding an example of successful execution of numpy.test() to the DocsVrinda Narayan2019-03-291-0/+3
|/
* Merge pull request #12988 from qwhelan/bool_ufuncEric Wieser2019-03-281-0/+6
|\ | | | | ENH: Create boolean and integer ufuncs for isnan, isinf, and isfinite.
| * ENH: Create boolean and integer ufuncs for isnan, isinf, and isfinite.Christopher Whelan2019-03-091-0/+6
| | | | | | | | | | | | | | | | Previously, boolean values would be routed through the half implementations of these functions, which added considerable overhead. Creating specialized ufuncs improves performance by ~250x Additionally, enable autovectorization of new isnan, isinf, and isfinite ufuncs.
* | MAINT: add overlap checks to choose, take, put, putmask (#13182)Allan Haldane2019-03-271-0/+5
| | | | | | Fixes #9293, #6272
* | MAINT: Rewrite numpy.pad without concatenate (gh-11358)Lars Grueter2019-03-251-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * ENH: Add support for constant, edge, linear_ramp to new numpy.pad Passes unit tests: - TestConstant - TestEdge - TestZeroPadWidth - TestLegacyVectorFunction - TestNdarrayPadWidth - TestUnicodeInput - TestLinearRamp * MAINT: Simplify diff / change order of functions * MAINT: Revert to old handling of keyword-only arguments * ENH: Add support for stat modes * ENH: Add support for "reflect" mode * MAINT: Remove _slice_column * ENH: Add support for "symmetric" mode * MAINT: Simplify mode "linear_ramp" Creating the linear ramp as an array with 1-sized dimensions except for the one given by `axis` allows implicit broadcasting to the needed shape. This seems to be even a little bit faster that doing this by hand and allows the simplicifaction of the algorithm. Note: Profiling and optimization will be done again at a later stage. * MAINT: Reorder arguments of a sum and fix typo Addresses feedback raised in PR. * ENH: Add support for "wrap" mode This completes the first draft of the complete rewrite meaning all unit tests should pass from this commit onwards. * MAINT: Merge functions for "reflect" and "symmetric" mode The set functions were nearly the same, apart from some index offsets. Merging them reduces code duplication. * TST: Add regression test for gh-11216 The rewrite in past commits fixed this bug. * BUG: Fix edge case for _set_wrap_both when pad_amt contains 0. And include test to protect against regression. * MAINT: Simplify and optimize pad modes Major changes & goals: Don't deal with pad area in the front and back separately. This modularity isn't needed and makes handling of the right edge more awkward. All modes now deal with the left and right side at the same time. Move the creation of the linear ramps fully to its own function which behaves like a vectorized version of linspace. Separate calculation and application of the pad area where possible. This means that _get_edges can be reused for _get_linear_ramps. Combine _normalize_shape and _validate_lengths in a single function which should handles common cases faster. Add new mode "empty" which leaves the padded areas undefined. Add documentation where it was missing. * TST: Don't use np.empty in unit tests * MAINT: Reorder workflow in numpy.pad and deal with empty dimensions Only modes "constant" and "empty" can extend dimensions of size 0. Deal with this edge case gracefully for all other modes either fail or return empty array with padded non-zero dimensions. Handle default values closer to their actual usage. And validate keyword arguments that must be numbers. * MAINT: Add small tweaks to control flow and documentation * BUG: Ensure wrap mode works if right_pad is 0 * ENH: Use reduced region of interest for iterative padding When padding multiple dimensions iteratively corner values are unnecessarily overwritten multiple times. This function reduces the working area for the first dimensions so that corners are excluded. * MAINT: Restore original argument order in _slice_at_axis * MAINT: Keep original error message of broadcast_to * MAINT: Restore old behavior for non-number end_values. * BENCH: Make the pad benchmark pagefault in setup * ENH/TST: Preserve memory layout (order) of the input array and add appropriate unit test. * STY: Revert cosmetical changes to reduce diff * MAINT: Pin dtype to float64 for np.pad's benchmarks * MAINT: Remove redundant code path in _view_roi * MAINT/TST: Provide proper error message for unsupported modes and add appropriate unit test. * STY: Keep docstrings consistent and fix typo. * MAINT: Simplify logical workflow in pad * MAINT: Remove dtype argument from _linear_ramp The responsibility of rounding (but without type conversion) is not really need in _linear_ramp and only makes it a little bit harder to reason about. * DOC: Add version tag to new argument "empty" * MAINT: Default to C-order for padded arrays unless the input is F-contiguous. * MAINT: Name slice of original area consistently for all arguments describing the same thing. * STY: Reduce vertical space * MAINT: Remove shape argument from _slice_at_axis Simplifies calls to this function and the function itself. Using `(...,)` instead should keep this unambiguous. This change is not compatible with Python 2.7 which doesn't support this syntax outside sequence slicing. If that is wanted one could use `(Ellipsis,)` instead. * TST: Test if end_values of linear_ramp are exact which was not given in the old implementation `_arange_ndarray`. * DOC: Improve comments and wrap long line * MAINT: Refactor index_pair to width_pair Calling the right value an index is just plain wrong as it can't be used as such. * MAINT: Make _linear_ramp compatible with size=0 * MAINT: Don't rely on negative indices for slicing Calculating the proper positive index of the start of the right pad area makes it possible to omit the extra code paths for a width of 0. This should make the code easier to reason about. * MAINT: Skip calculation of right_stat if identical If the input area for both sides is the same we don't need to calculate it twice. * TST: Adapt tests from gh-12789 to rewrite of pad * TST: Add tests for mode "empty" * TST: Test dtype persistence for all modes * TST: Test exception for unsupported modes * TST: Test repeated wrapping for each side individually. Reaches some only partially covered if-statments in _set_wrap_both. * TST: Test padding of empty dimension with constant * TST: Test if end_values of linear_ramp are exact which was not given in the old implementation `_arange_ndarray`. (Was accidentally overwritten during the last merge). * TST: Test persistence of memory layout Adapted from an older commit 3ac4d2a1b9b258d65f8d2b5f8f25f88e3a0e8f58 which was accidentally overwritten during the last merge. * MAINT: Simplify branching in _set_reflect_both Reduce branching and try to make the calculation of the various indices easier to understand. * TST: Parametrize TestConditionalShortcuts class * TST: Test empty dimension padding for all modes * TST: Keep test parametrization ordered Keep parametrization ordered, otherwise pytest-xdist might believe that different tests were collected during parallelization causing test failures. * DOC: Describe performance improvement of np.pad as well as the new mode "empty" in release notes (see gh-11358). * DOC: Remove outdated / misleading notes These notes are badly worded or actually misleading. For a better explanation on how these functions work have a look at the context and comments just above the lines calling these functions.
* | Merge pull request #13174 from bmakos/Fix#13013Matti Picus2019-03-242-15/+12
|\ \ | | | | | | DOC: Removed some c-api duplication
| * | DOC: Attempting to remove duplicate documentation.Mircea Akos Bruma2019-03-212-15/+12
| | |
* | | DOC, BUILD: fail the devdoc build if there are warningsmattip2019-03-213-11/+8
|/ /
* | Merge pull request #13162 from mattip/update-numpydocsMatti Picus2019-03-201-0/+0
|\ \ | | | | | | BUILD: update numpydoc to latest version
| * | BUILD: update numpydocs to latest versionmattip2019-03-201-0/+0
| | |
* | | DOC: Fix c-api function documentation duplication. #13119Mircea Akos Bruma2019-03-191-10/+8
|/ /
* | Merge pull request #13099 from liwt31/add-indexing-docMatti Picus2019-03-192-0/+22
|\ \ | | | | | | DOC: Add note about "copy and slicing"
| * | DOC: add copy on slicing noticewtli2019-03-142-0/+22
| |/
* | Merge branch 'master' into deprecate-float-orderEric Wieser2019-03-165-32/+150
|\ \
| * \ Merge pull request #13127 from eric-wieser/fixup-release-note-whitespaceMatti Picus2019-03-151-6/+2
| |\ \ | | | | | | | | DOC: Tidy 1.17.0 release note newlines
| | * | DOC: Tidy 1.17.0 release note newlinesEric Wieser2019-03-141-6/+2
| | | | | | | | | | | | | | | | | | | | | | | | I've found that automatic merges seem to go better if there are no blank lines between headers and the content below them. This is consistent with the older release notes anyway
| * | | Merge pull request #11689 from tylerjereddy/docs_C_at_symbolEric Wieser2019-03-141-2/+66
| |\ \ \ | | |/ / | |/| | DOC: Add ref docs for C generic types.
| | * | DOC: Add ref docs for C generic types.Tyler Reddy2018-10-171-2/+66
| | | |
| * | | DOC: update scipy-sphinx-theme, fixes searchmattip2019-03-141-0/+0
| | | |