| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \ \
| |/ / / / /
|/| | | | | |
ENH: use prefetching for summation
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
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.
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
add clarification of weights to documentation for polyfit
|
| | | | | | | |
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Improve may_share_memory performance + fix non-ndarray inputs
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
The converter function has NPY_ARRAY_CARRAY enabled, which can cause
false negatives for non-ndarray inputs.
Fixes gh-5604
|
| | | | | | | | |
|
| |/ / / / / /
|/| | | | | | |
|
|/ / / / / / |
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| |/ / / /
|/| | | | |
Fix ma dot
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Test that ma.dot always returns a masked array.
Test basic that the new out parameter in ma.dot works.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Fix some long lines and indentation in numpy/ma/core.py and
numpy/ma/extras.py
|
|\ \ \ \ \
| | | | | |
| | | | | | |
MAINT: Dictionary litteral
|
| | | | | | |
|
|\ \ \ \ \ \
| | | | | | |
| | | | | | | |
MAINT: remove _build_utils/waf.py.
|
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
This was used by Bento, and support for Bento was removed in gh-6268.
|
|\ \ \ \ \ \ \
| |/ / / / / /
|/| | | | | | |
MAINT: Remove useless semicolon
|
| |/ / / / / |
|
|\ \ \ \ \ \
| |_|/ / / /
|/| | | | | |
MAINT: use list litterals
|
| |/ / / / |
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: Fix memleak in _convert_from_dict
|
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Fixes a memleak introduced in #5920, where PyDict_GetItemString
was replaced by PyMapping_GetItemString which returns a new ref.
Fixes #6636
|
|/ / / / /
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
recarray.__getitem__ should return a recarray when the returned value
had structured type (it's documented to do so).
Fixes #6641
|
| |/ / /
|/| | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The function was returning an ndarray subtype when the at least one
of the arguments was a subtype.
Closes #6475.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Add choice and dirichlet to numpy.random.__all__.
|
| | |_|/
| |/| |
| | | |
| | | | |
Closes #6602.
|
|/ / /
| | |
| | |
| | |
| | | |
Noncentral chi-square reduces to a central chi-square, so
just defer to that.
|
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
|\ \ \
| | | |
| | | | |
BUG: immutable _arraymethod function in ma.core
|
| |/ /
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
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
|
|/ /
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| |
| | |
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.
|
|\ \
| | |
| | | |
BUG: Fix for #6569, allowing build_ext --inplace
|
| | | |
|
|/ /
| |
| |
| |
| |
| | |
Use a different strategy to detect whether np.load creates cycles.
Fixes gh-6571, I hope.
|
|\ \
| | |
| | | |
BUG: Fix partition and argpartition error for empty input. Closes #6530
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| | | |
| | | | |
Disable view safety checks
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
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.
|
| | | |
| | | |
| | | |
| | | |
| | | | |
Remove unit tests for the view safety chekcs, which are to be reverted
in the next commit.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Revert some import * fixes in f2py.
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
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.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: fix AttributeError in numpy distutils
|
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
Corrects an AttributeError on windows in some cases caused by #6185
|
| |/ / / /
|/| | | |
| | | | |
| | | | |
| | | | | |
Neither are useful, and will discourage both reading and editing of the
material.
|
|\ \ \ \ \
| | | | | |
| | | | | | |
BUG: error in broadcast_arrays with as_strided array
|
| | |/ / /
| |/| | |
| | | | |
| | | | | |
Fixes GH6491
|