| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
ENH: Avoid memory peak when creating a MaskedArray with mask=True/False.
|
| | | | | | | | | |
|
| | | | | | | | | |
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
When the `mask` parameter is set to True or False, create directly a `ndarray` of
boolean instead of going inside `np.resize` which was causing of memory peak of
~15 times the size of the mask.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
ENH: Avoid memory peak and useless computations when printing a MaskedArray.
|
| | | | | | | | | | |
|
| | | | | | | | | | |
|
| |/ / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Ref #3544.
When printing a `MaskedArray`, the whole array is converted to the object dtype,
whereas only a few values are printed to screen. So the approach here is to cut
the array and keep only a subset that it used for the string conversion. This
way the output should not change.
|
|\ \ \ \ \ \ \ \ \
| |_|_|/ / / / / /
|/| | | | | | | | |
BUG/TST: Fix for #6729
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Fix representation of a structured masked array with dimension zero.
The effect of representing a masked array with dimension zero is now
similar to respresenting an mvoid. This commit fixes #6729.
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | |
| | | | | | | |
| | | | | | | | |
charris/fix-bugs-exposed-by-relaxed-stride-rollback
Fix bugs exposed by relaxed stride rollback
|
| | | | | | | | |
|
| |/ / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
The varibles in question lead to unused variable warnings when not
compiling with NPY_RELAXED_STRIDE_CHECKING=1 resulting in failing
travis tests.
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
added extra line in the tile help doc to outline a general repeat, co…
|
| | | | | | | | |
|
| | | | | | | | |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
BUG: Readd fallback CBLAS detection on linux.
|
| | |/ / / / / /
| |/| | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Fallback CBLAS detection was removed in gh-6183 because it led to
problems on windows when mingw was used with python compiled with msvc
but msvc was not installed. As a result of that fix, CBLAS detection
failed for some Linux installations. The solution here is to add back
the fallback detection but make it specific to non-windows platforms.
Closes #6675.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
BUG: Fix for #6719
|
|/ / / / / / / /
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
numpy/random/mtrand/mtrand.pyx contains a line where cython fails to
compile, complaining “Pythonic division not allowed without gil”. By
running this code segment under cdivision(True), this problem is avoided.
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
MAINT: enable Werror=vla in travis
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
avoids issues with stone age compilers like MSVC
|
|\ \ \ \ \ \ \ \
| |/ / / / / / /
|/| | | | | | | |
BUG: fix pointer arithmetic in _get_field_view
|
| | | | | | | | |
|
|/ / / / / / /
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | |
| | | | | | | |
Should have used PyArray_BYTES, not PyArray_DATA
Fixes #6701
|
|\ \ \ \ \ \ \
| | | | | | | |
| | | | | | | | |
Changed lines for successfull MSVC 14.0 compiling
|
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | |
| | | | | | | | |
Reallocated free functions in mem_overlap.c
Cosmetics.
Final indent.
Added tests if pointer==NULL
Fixed indent
Fixed position of goto label.
Fixed ISO C90 violation.
Made simpler checks and removed redundant lines.
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
TST: test np.rint bug for large integers
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Test for https://github.com/numpy/numpy/issues/6685
Add test to remind packagers that they may need to fix or workaround
this bug on some systems.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
MAINT: fix spurious semicolon in macro definition of PyArray_FROM_OT
|
|/ / / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
There is a spurious semicolon (;) character at the end of the macro
definition of PyArray_FROM_OT, in the header file ndarrayobject.h. This
prevents the macro from being used like a function, e.g. one can't write
like
if ( !(arr = PyArray_FROM_OT( ... )) )
... ...
After removing the semicolon, the macro can be used like a C function.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
BUG: fix removing tempdirs created during build
|
| |/ / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Old code used the thread local storage wrong and also only deleted the
directories created for the last parallel build section as the exit
handler only knows about one of the directories.
Fix by storing all created tempdirs to delete at exit.
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| | | | | | | | |
BUG, MAINT: check that histogram range parameters are finite.
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
assure this. Improved some error-types.
|
|\ \ \ \ \ \ \ \ \
| | | | | | | | | |
| | | | | | | | | | |
expose KnownFailure and SkipTest exceptions in numpy.testing
|
| |/ / / / / / / /
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
* use SkipTest in numpy tests instead of importing it from nose
* add a KnownFailureException as an alias for KnownFailureTest
(the former is preferred, but the latter is kept for backcompat)
* rename the KnownFailure nose plugin into KnownFailurePlugin,
and keep the old name for backcompat
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| | | | | | | | |
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
|
| | | | | | | | | | |
|
|\ \ \ \ \ \ \ \ \ \
| |_|/ / / / / / / /
|/| | | | | | | | | |
BUG: testing: fix a bug in assert_string_equal
|
|/ / / / / / / / / |
|
|\ \ \ \ \ \ \ \ \
| |/ / / / / / / /
|/| | | | | | | | |
DOC: document that assert_raises can be used as a context manager
|
|/ / / / / / / / |
|
|\ \ \ \ \ \ \ \
| | | | | | | | |
| | | | | | | | | |
BUG: ma.make_mask should always return nomask for nomask argument.
|
| | | | | | | | |
| | | | | | | | |
| | | | | | | | |
| | | | | | | | | |
Document fix to ma.make_mask.
|