| Commit message (Collapse) | Author | Age | Files | Lines |
| |\
| |
| | |
more backports for 1.9.2
|
| | |
| |
| |
| | |
test
|
| | |
| |
| |
| |
| | |
argpartition does not fail anymore on non-ndarray array-likes.
Fix as implemented by @maniteja123.
|
| |\ \
| | |
| | |
| | | |
DOC: Describe return_counts keyword in np.unique docstring
|
| | | | |
|
| |\ \ \
| |/ /
| | /
| |/
|/| |
BUG: Fixes ndarray.fill to accept maximum uint64 value
|
| | | |
|
| |\ \
| |/
| |
| | |
BUG: Fix a reference leak in ufunc type resolution.
|
| | |
| |
| |
| | |
ensure_dtype_nbo() already creates a new reference.
|
| |\ \
| | |
| | | |
some backports for 1.9.2
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
The Python.h header likes to be included first, otherwise warnings about
redefining "_POSIX_C_SOURCE" and "_XOPEN_SOURCE" are generated. This is
really a problem with the Python.h header, but can be worked around by
changing the order of inclusion.
|
| | | |
| | |
| | |
| | |
| | |
| | | |
Add a testcase `test_fillvalue_datetime_timedelta` to class
`TestFillingValues` for the fix to bug #4476. See commit
216fd17 and pull request #5455.
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
This commit fixes bug #4476 by adding the codes for the datetime64 and
timedelta64 types to the `default_filler` dictionary in numpy.ma.core,
used by `default_fill_value`. Also adapt checking in the
`default_fill_value` to include code for timedelta64, not only datetime64.
|
| | | |
| | |
| | |
| | | |
[ci skip]
|
| | | | |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Current loadtxt with `comments=None` considers the string `'None'` as a
comment symbol. Fixed by making split_line method check if comments is
None.
Closes #5155.
|
| |\ \ \
| |/ /
|/| | |
Fix too large alignment of complex types
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
malloc only provides 8byte alignment and is sufficient to load complex
on x86 platforms.
This fixes the f2py alignment failures with complex types on win32 or on
linux32 with -malign-double
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
If itemsize is a power of two use that as the required alignment up to
the maximum provided by the platform. Power of two sizes may be accessed
via larger moves than bytes.
Non-power of two sizes are accessed bytewise and can thus always be
considered aligned.
Closes gh-5293
|
| |\ \ \
| | |/
| |/|
| | | |
PyErr_NoMemory when PyArray_Zeros fails to initialize
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
BUG: Fix astype for structured array fields of different byte order.
|
| | | |/
| |/|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The offending commit is c53b0e4, which introduced two regressions:
- using astype to cast a structured array to one with a different byte
order no longer works;
- comparing structured-array dtypes can give incorrect results if the
two dtypes have different byte orders.
This pull request should fix both.
One thing I wasn't sure about is reordering struct fields. In my
implementation, the `equiv`, `same_kind`, and `safe` rules are now
allowed to reorder fields. If that isn't desired, though, it's a pretty
easy change.
|
| |\ \ \
| |/ /
|/| /
| |/ |
BUG: fix ma.median used on ndarrays
|
| | |
| |
| |
| |
| |
| | |
ndarrays have a data attribute pointing to the data buffer which leads
to the median working on a byte view instead of the actual type.
closes gh-5424
|
| |\ \
| | |
| | | |
TST: added test for PyArray_AsCArray #5313
|
| | | | |
|
| | | | |
|
| |\ \ \
| | | |
| | | | |
BUG: Xerbla doesn't get linked in 1.9 on Fedora 21.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Add our python_xerbla to the blasdot sources. That function is
needed for all modules that link to the ATLAS 3.10 libraries, which
in Fedora 21 are located in just two files: libsatlas and libtatlas.
Also make the test for xerbla linkage work better. If xerbla is not
linked the test will be skipped with a message.
|
| |\ \ \ \
| |/ / /
|/| | | |
ENH: Add support for ATLAS > 3.9.33.
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Recent ATLAS combines the previous libraries into two
* libsatlas -- single threaded.
* libtatlas -- threaded.
This fix is a bit of hack in that ATLAS > 3.9.33 is treated as a new,
separate library covered by atlas_3_10_info, but the latter derived
from atlas_info, which treats the cblas, atlas, and atlas_lapack
libraries separately, so the new info has a bit of repetition.
The alternative would be to rewrite atlas_info, but that can wait
on a larger cleanup of the build system.
Closes #3774.
|
| |\ \ \ \
| | |/ /
| |/| |
| | | | |
DOC: Fixed incorrect assert_array_almost_equal_nulp documentation
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The `max()` function previously used does not work with two array-like.
`maximum()` does, and is what is essentially used in the code
(`ref = nulp * np.spacing(np.where(ax > ay, ax, ay))`).
|
| |\ \ \ \
| |/ / /
| | | |
| | | | |
BUG: Make RandomState.seed, RandomState.randint and RandomState.shuffle threadsafe
|
| | | | | |
|
| |\ \ \ \
| |/ / /
| | | |
| | | | |
BUG: Make RandomState.set_state and RandomState.get_state threadsafe
|
| | |/ / |
|
| |\ \ \
| |/ /
| | |
| | | |
DOC : minor changes to linspace docstring
|
| | | |
| | |
| | |
| | |
| | | |
- added optional flag to dtype
- moved conditional on step to the description from the type
|
| | | |
| | |
| | |
| | | |
unicode data (in the process eliminate some unnecessary cruft)
|
| |\ \ \
| |/ /
| | |
| | | |
BUG: fix not returning out array from ufuncs with subok=False set
|
| | | |
| | |
| | |
| | | |
closes gh-5240
|
| |\ \ \
| | | |
| | | | |
BUG: Ugly fix for Apple's cblas_sgemv segfault
|
| | | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
SGEMV in Accelerate framework will segfault on MacOS X version 10.9
(aka Mavericks) if arrays are not aligned to 32 byte boundaries
and the CPU supports AVX instructions. This can produce segfaults
in numpy.dot if we use numpy.float32 as dtype. This patch overshadows
the symbols cblas_sgemv, sgemv_ and sgemv exported by Accelerate
to produce the correct behavior. The MacOS X version and CPU specs
are checked on module import. If Mavericks and AVX are detected
the call to SGEMV is emulated with a call to SGEMM if the arrays
are not 32 byte aligned. If the exported symbols cannot be
overshadowed on module import, a fatal error is produced and the
process aborts. All the fixes are in a self-contained C file
and do not alter the _dotblas C code. The patch is not applied
unless NumPy is configured to link with Apple's Accelerate
framework.
|
| |\ \ \ \
| | | | |
| | | | |
| | | | | |
BUG: copy inherited masks in MaskedArray.__array_finalize__
|
| | | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Previously, operations which created a new masked array from an old
masked array -- e.g., np.empty_like -- would tend to result in the new
and old arrays sharing the same .mask attribute. This leads to
horrible brokenness in which writes to one array affect the other. In
particular this was responsible for part of the brokenness that
@jenshnielsen reported in gh-5184 in which np.gradient on masked
arrays would modify the original array's mask.
This fixes the worst part of the issues addressed in gh-3404, though
there's still an argument that we ought to deprecate the mask-copying
behaviour entirely so that empty_like returns an array with an empty
mask. That can wait until we find someone who cares though.
I also applied a small speedup to np.gradient (avoiding one copy);
previously this inefficiency was masking (heh) some of the problems
with masked arrays, so removing it is both an optimization and makes
it easier to test that things are working now.
|
| |\ \ \ \ \
| | | | | |
| | | | | | |
Backports for 1.9.1
|
| | | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | |
| | | | | | |
* Previous expected behavior was that the gradient is computed using central
differences in the interior and first differences at the boundaries.
* gradient was updated in v1.9.0 so that second-order accurate calculations are
done at the boundaries, but this breaks expected behavior with old code, so
`edge_order` keyword (Default: 1) is added to specify whether first or second
order calculations at the boundaries should be used.
* Since the second argument is *varargs, in order to maintain compatibility
with old code and compatibility with python 2.6 & 2.7, **kwargs is used, and
all kwargs that are not `edge_order` raise an error, listing the offending
kwargs.
* Tests and documentation updated to reflect this change.
* Added `.. versionadded:: 1.9.1` to the new optional kwarg `edge_order`
documentation, and specified supported `edge_order` kwarg values.
* Clarified documentation for `varargs`.
* Made indentation in docstring consistent with other docstring styles.
* Examples corrected
|
| | | | | | | |
|