summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | Merge pull request #6666 from juliantaylor/prefetch-sumCharles Harris2015-11-163-0/+22
|\ \ \ \ \ \ | |/ / / / / |/| | | | | ENH: use prefetching for summation
| * | | | | ENH: use prefetching for summationJulian Taylor2015-11-163-0/+22
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems the small blocksizes (128) messes up the hardware prefetcher which would usually be able to work fine on this iteration pattern. Fix this by using software prefetching. Improves performance for large sums by 15%-30%. Tested on core2duo, xeon E5-4620, i5-3470 and AMD phenom II X4. Prefers __builtin_prefetch as that, unlike SSE2 _mm_prefetch, also works on capable non-x86 cpus.
* | | | | | Merge pull request #6681 from griffin-h/polyfit/weight_doc_updateCharles Harris2015-11-151-1/+2
|\ \ \ \ \ \ | | | | | | | | | | | | | | add clarification of weights to documentation for polyfit
| * | | | | | add clarification of weights to documentationGriffin Hosseinzadeh2015-11-131-1/+2
| | | | | | |
* | | | | | | Merge pull request #6679 from pv/may-share-memory-fixJulian Taylor2015-11-155-59/+141
|\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | Improve may_share_memory performance + fix non-ndarray inputs
| * | | | | | | BUG: don't use PyArray_Converter in may_share_memoryPauli Virtanen2015-11-122-4/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The converter function has NPY_ARRAY_CARRAY enabled, which can cause false negatives for non-ndarray inputs. Fixes gh-5604
| * | | | | | | ENH: reimplement may_share_memory in C to improve its performancePauli Virtanen2015-11-124-55/+85
| | | | | | | |
* | | | | | | | BUG: testing: fix a bug in assert_string_equalPauli Virtanen2015-11-142-6/+24
| |/ / / / / / |/| | | | | |
* | | | | | | DOC: document that assert_raises can be used as a context managerEvgeni Burovski2015-11-121-0/+12
|/ / / / / /
* | | | | | BUG: ma.make_mask should always return nomask for nomask argument.Charles Harris2015-11-112-4/+16
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | When the mask argument was nomask, commit 8da9c71 changed the behavior to depend on shrink=True as well, resulting in array(False) false being returned when shrink=True, which in turn led to bugs because nomask is a singleton and is detected by `mask is nomask`. That dectection fails when nomask is replaced by array(False). Closes #6667.
* | | | | Merge pull request #6653 from charris/fix-ma-dotCharles Harris2015-11-104-184/+262
|\ \ \ \ \ | |/ / / / |/| | | | Fix ma dot
| * | | | TST: Add tests for ma.dot.Charles Harris2015-11-102-21/+37
| | | | | | | | | | | | | | | | | | | | | | | | | Test that ma.dot always returns a masked array. Test basic that the new out parameter in ma.dot works.
| * | | | BUG, MAINT: Refactor ma.dot function and the corresponding method.Charles Harris2015-11-102-162/+221
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The basic implementation of ma.dot is moved from the method to the function and the function itself is moved from extras.py to core.py on account of import complications. The mask_rowcols function from extras is also moved to core.py as it is needed by dot. For backwards compatibility, both functions are still exported in extras.__all__ and can be imported from that module. They are not included in part of core.__all__. An out parameter is also added to ma.dot. This PR also closes #6611.
| * | | | STY: Minor style fixups.Charles Harris2015-11-072-3/+6
| | | | | | | | | | | | | | | | | | | | | | | | | Fix some long lines and indentation in numpy/ma/core.py and numpy/ma/extras.py
* | | | | Merge pull request #6649 from sieben/dict_litteralJaime2015-11-077-49/+33
|\ \ \ \ \ | | | | | | | | | | | | MAINT: Dictionary litteral
| * | | | | MAINT: Dictionary litteralRémy Léone2015-11-077-49/+33
| | | | | |
* | | | | | Merge pull request #6652 from rgommers/remove-wafCharles Harris2015-11-071-528/+0
|\ \ \ \ \ \ | | | | | | | | | | | | | | MAINT: remove _build_utils/waf.py.
| * | | | | | MAINT: remove _build_utils/waf.py.Ralf Gommers2015-11-071-528/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This was used by Bento, and support for Bento was removed in gh-6268.
* | | | | | | Merge pull request #6648 from sieben/useless_semicolonJaime2015-11-072-2/+2
|\ \ \ \ \ \ \ | |/ / / / / / |/| | | | | | MAINT: Remove useless semicolon
| * | | | | | MAINT: Remove useless semicolonRémy Léone2015-11-072-2/+2
| |/ / / / /
* | | | | | Merge pull request #6650 from sieben/list_litteralRalf Gommers2015-11-073-9/+3
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | MAINT: use list litterals
| * | | | | MAINT: list litteralRémy Léone2015-11-073-9/+3
| |/ / / /
* | | | | Merge pull request #6642 from ahaldane/fix_dict_descr_memleakCharles Harris2015-11-061-8/+23
|\ \ \ \ \ | | | | | | | | | | | | BUG: Fix memleak in _convert_from_dict
| * | | | | BUG: Fix memleak in _convert_from_dictAllan Haldane2015-11-061-8/+23
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes a memleak introduced in #5920, where PyDict_GetItemString was replaced by PyMapping_GetItemString which returns a new ref. Fixes #6636
* | | | | | ENH: make recarray.getitem return a recarrayAllan Haldane2015-11-062-0/+9
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | recarray.__getitem__ should return a recarray when the returned value had structured type (it's documented to do so). Fixes #6641
* | | | | BUG: Make allclose return python bool.Charles Harris2015-11-042-1/+12
| |/ / / |/| | | | | | | | | | | | | | | | | | | | | | | The function was returning an ndarray subtype when the at least one of the arguments was a subtype. Closes #6475.
* | | | Merge pull request #6614 from charris/update-random-allCharles Harris2015-11-021-0/+4
|\ \ \ \ | | | | | | | | | | BUG: Add choice and dirichlet to numpy.random.__all__.
| * | | | BUG: Add choice and dirichlet to numpy.random.__all__.Charles Harris2015-11-021-0/+4
| | |_|/ | |/| | | | | | | | | | Closes #6602.
* | | | MAINT: random: allow nonc==0 in noncentral_chisquare.Evgeni Burovski2015-11-023-4/+14
|/ / / | | | | | | | | | | | | Noncentral chi-square reduces to a central chi-square, so just defer to that.
* | | DOC: Update documentation for isfortran.Charles Harris2015-11-011-2/+6
| | | | | | | | | | | | | | | | | | Clarify isfortran checks if an array is both Fortran contiguous and *not* C contiguous. The suggests that it only checks if the array is F contiguous, but that is not the case.
* | | Merge pull request #6588 from jjhelmus/fix_copy_mutableahaldane2015-11-012-45/+30
|\ \ \ | | | | | | | | BUG: immutable _arraymethod function in ma.core
| * | | BUG: immutable _arraymethod function in ma.coreJonathan Helmus2015-10-292-45/+30
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Replace the _arraymethod class in ma.core with a function factory which returns class method wrappers around basic array methods. These methods are bound to the MaskedArray instance and are immutable. Previously _arraymethod was a class which would incorrectly operate on the MaskedArray object which last accessed the particular named function. closes #5247
* | | DEP: Remove FutureWarning from np.lib.split and go to future.Charles Harris2015-10-302-28/+13
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | Previously an empty array resulting from split always had dimension 1-D. In Numpy 1.9 a FutureWarning was raised to notify users that it was planned to preserve the dimensions of empty arrays in a future numpy release. This removes the FutureWarning and implements preservation of dimensions. Note that there was a bug in numpy 1.9 and the dimensions of empty arrays was already preserved in some cases and no warning was issued. This PR fixes that inconsistency by preserving the dimensions in all cases rather than fixing the bug, as the dimension preserving behavior was already depended on by some users. See the discussion in gh-6575 about this change.
* | Merge pull request #6577 from wackywendell/buildfixRalf Gommers2015-10-291-1/+2
|\ \ | | | | | | BUG: Fix for #6569, allowing build_ext --inplace
| * | BUG: Fix for #6569, allowing build_ext --inplaceWendell Smith2015-10-281-1/+2
| | |
* | | TST: attempt to make test_load_refcount deterministicNathaniel J. Smith2015-10-281-6/+11
|/ / | | | | | | | | | | Use a different strategy to detect whether np.load creates cycles. Fixes gh-6571, I hope.
* | Merge pull request #6553 from yashmehrotra/partition-fixCharles Harris2015-10-273-2/+28
|\ \ | | | | | | BUG: Fix partition and argpartition error for empty input. Closes #6530
| * | TST: Added regression test empty percentile, in ref to #6530 and #6553Yash Mehrotra2015-10-271-0/+4
| | |
| * | TST: Added tests for empty partition and argpartitionYash Mehrotra2015-10-271-0/+18
| | |
| * | BUG: Fixed partition errors on empty input. Closes #6530Yash Mehrotra2015-10-261-2/+6
| | |
* | | Merge pull request #6562 from ahaldane/disable_view_safety_checksCharles Harris2015-10-263-217/+13
|\ \ \ | | | | | | | | Disable view safety checks
| * | | BUG: revert view safety checksAllan Haldane2015-10-261-124/+13
| | | | | | | | | | | | | | | | | | | | | | | | Because of slowdowns caused by the view safety checks introduced in #5548 they are removed here for 1.10. The plan is to reintroduce a better version of the checks in 1.11.
| * | | TST: Remove tests of view safety checks (see next commit)Allan Haldane2015-10-262-93/+0
| | | | | | | | | | | | | | | | | | | | Remove unit tests for the view safety chekcs, which are to be reverted in the next commit.
* | | | Merge pull request #6567 from charris/fix-f2py-importsNathaniel J. Smith2015-10-263-22/+15
|\ \ \ \ | | | | | | | | | | BUG: Revert some import * fixes in f2py.
| * | | | BUG: Revert some import * fixes in f2py.Charles Harris2015-10-263-22/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The files * capi_maps.py * crackfortran.py * f90mod_rules.py previously used `from .auxfuncs import *` and also called `eval` without an explicit enviroment. An attempt to use explicit imports led to errors, and because static code analysis in not sufficient to determine what functions need to be imported, it is safest to continue using `import *` pending a major refactoring of f2py. Closes #6563.
* | | | | Merge pull request #6470 from groutr/fix_attrerrorRalf Gommers2015-10-251-2/+3
|\ \ \ \ \ | | | | | | | | | | | | BUG: fix AttributeError in numpy distutils
| * | | | | BUG: fix AttributeError in numpy/distutils.Ryan Grout2015-10-191-2/+3
| | | | | | | | | | | | | | | | | | | | | | | | Corrects an AttributeError on windows in some cases caused by #6185
* | | | | | DOC: remove placeholders and incompleteness warningsPauli Virtanen2015-10-255-50/+0
| |/ / / / |/| | | | | | | | | | | | | | | | | | | Neither are useful, and will discourage both reading and editing of the material.
* | | | | Merge pull request #6556 from shoyer/fix-broadcast-arraysCharles Harris2015-10-242-3/+14
|\ \ \ \ \ | | | | | | | | | | | | BUG: error in broadcast_arrays with as_strided array
| * | | | | BUG: error in broadcast_arrays with as_strided arrayStephan Hoyer2015-10-242-3/+14
| | |/ / / | |/| | | | | | | | | | | | | Fixes GH6491