| Commit message (Collapse) | Author | Age | Files | Lines |
|\
| |
| | |
DOC: fixed correlate docstring.
|
| |
| |
| |
| |
| | |
Replaced typeset formulas by pure ASCII equivalents. Should now be
easier to read in source files.
|
| |
| |
| |
| |
| | |
Replaced correlation formula with corrected version that matches the
numpy implementation. Added comment on possible further different
definitions of correlation. Added examples.
|
|\ \
| | |
| | | |
add spaces to literal string concatination for C++11 compatibility
|
| | |
| | |
| | |
| | |
| | | |
literal string concatination without spaces not
allowed in C++11 anymore
|
|\ \ \
| |/ /
|/| | |
BUG: fix declaration-after-statement
|
| | |
| | |
| | |
| | | |
closes gh-3930
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
This preserves the complex (and higher precision float or
object) type of the input array, so that the complex
covariance and correlation coefficients can be calculated.
It also fixes the the behaviour of empty arrays. These will
now either result in a 0x0 result, or a NxN result filled
with NaNs.
A warning is now issued when ddof is too large and the factor
set to 0 so that in this case the result is always NaN or
infinity/negative infinity and never a negative number.
Closes gh-597 and gh-2680
Closes gh-3882 (original pull request)
|
|\ \ \
| |/ /
|/| | |
BUG Masked arrays treated incorrectly in isclose(..,..,equal_nan=True)
|
| | | |
|
| | |
| | |
| | | |
Fix `ResourceWarning: unclosed file` on Python 3
|
| | |
| | |
| | | |
In the PDF used for the example plot of the Laplace distribution only the location parameter loc instead of the absolute difference between random variable and loc was divided by the scale parameter. For the example at hand this makes no difference as loc is 0 and lambda is 1. For different values, however, the plot makes no sense.
|
| | |
| | |
| | |
| | |
| | | |
Since NpyIter keeps track of the total size, this cannot be
larger then npy_intp, so that an overflow check is necessary.
|
| | |
| | |
| | |
| | |
| | | |
fixes missing recompilation of parts of numpy when the static libraries
change.
|
| | |
| | |
| | |
| | | |
and use them in scalarmathmodule.c instead of the old (disabled) ones.
|
| | |
| | |
| | |
| | | |
allows generating headers like npy_partition.h with the code generator
|
|\ \ \
| |/ /
|/| | |
A couple micro optimizations
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
move slow test_memmap_roundtrip to slow tests
decrease excessively large array size used in np.sin(x) compuation
TestInterp.test_if_len_x_is_small, the code has no special path for this
large size differences.
|
| | |
| | |
| | |
| | |
| | | |
one can just bitwise_or the memory and all strides and call npy_is_aligned on
that to get the same result.
|
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Avoid expensive division by checking against half size of the result first.
Speeds up PyArray_NewFromDescr by a factor of two according to perf.
Could still be further improved by making use of cpu overflow flags, e.g. via
clangs __builtin_mul_with_overflow or using gccs __int128 type.
|
|\ \ \
| |_|/
|/| | |
Convert docstrings to comments for nose; PEP8 cleanup (some tests activated)
|
| | | |
|
| | | |
|
| | | |
|
|\ \ \
| |/ /
| | | |
BUG Ensure NotImplemented is passed on in MaskedArray ufunc's
|
| | | |
|
| | | |
|
| | | |
|
| | | |
|
| | |
| | |
| | |
| | | |
At least OSX Accelerate fails for this case.
|
|/ /
| |
| |
| | |
about 3-5 times faster on 64 bit machines, about 2 times faster on i386.
|
|\ \
| | |
| | | |
MAINT: accept NULL in NpyIter_Deallocate and remove redundant NULL checks
|
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Deallocation should just do nothing if provided a NULL pointer nditer
deletion broke this convention.
Removed many redundant NULL checks for various deallocation functions
used in numpy, they all end up in standard C free or PyMem_Free which
are both NULL safe.
|
|\ \ \
| | | |
| | | | |
STY: pep8 for npyio
|
| | | |
| | | |
| | | |
| | | | |
fixing one typo in npyio.py
|
| | | |
| | | |
| | | |
| | | | |
Two slight style modifications in npyio, regarding line length.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
Various pep8 fixes for npyio.py
Also reorganized the imports, and removed the unnecessary (I hope)
`_string_like = _is_string_like` statement.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: Disable check for oldstyle classes in python3 (np.info)
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | | |
Fixes gh-2561
|
| | | | |
| | | | |
| | | | | |
Clarify `memmap` docstring to better reflect the meaning of *offset*.
|
| | | | | |
|
| | | | | |
|
| | | | |
| | | | |
| | | | |
| | | | |
| | | | | |
Some of the functions removed were untested, and apparently did not
function correctly (cholesky_up, inner1d, maybe more).
|
| | | | | |
|
| | | | | |
|
|/ / / /
| | | |
| | | |
| | | |
| | | |
| | | | |
Also remove TestCase subclassing, so that generator tests work. Also
fix bugs in the existing generator tests that were not actually run
previously.
|
| | | |
| | | |
| | | |
| | | |
| | | |
| | | | |
The include is needed for isinf.
Closes #3871.
|
|\ \ \ \
| | | | |
| | | | | |
BUG: ensure percentile has same output structure as in 1.8
|