summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #3913 from bspinnler/fix_correlate_docstringCharles Harris2013-10-161-1/+27
|\ | | | | DOC: fixed correlate docstring.
| * DOC: replaced typeset formulas by pure ASCII equivalents.Bernhard Spinnler2013-10-151-13/+12
| | | | | | | | | | Replaced typeset formulas by pure ASCII equivalents. Should now be easier to read in source files.
| * DOC: fixed correlate docstring.Bernhard Spinnler2013-10-131-7/+34
| | | | | | | | | | Replaced correlation formula with corrected version that matches the numpy implementation. Added comment on possible further different definitions of correlation. Added examples.
* | Merge pull request #3929 from chrodan/strc++11Charles Harris2013-10-161-1/+1
|\ \ | | | | | | add spaces to literal string concatination for C++11 compatibility
| * | added spaces to literal string concatsChristoph Dann2013-10-161-1/+1
| | | | | | | | | | | | | | | literal string concatination without spaces not allowed in C++11 anymore
* | | Merge pull request #3932 from juliantaylor/windows-annoyanceCharles Harris2013-10-161-2/+6
|\ \ \ | |/ / |/| | BUG: fix declaration-after-statement
| * | BUG: fix declaration-after-statementJulian Taylor2013-10-161-2/+6
| | | | | | | | | | | | closes gh-3930
* | | BUG: cov/corrcoef complex input and empty arraysJoseph Martinot-Lagarde2013-10-162-27/+71
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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)
* | | Merge pull request #3914 from mhvk/numeric/isclose-mask-safeCharles Harris2013-10-162-1/+8
|\ \ \ | |/ / |/| | BUG Masked arrays treated incorrectly in isclose(..,..,equal_nan=True)
| * | Ensure masked arrays are treated correctly for isclose(..,..,equal_nan=True)Marten van Kerkwijk2013-10-132-1/+8
| | |
* | | BUG: close file-like objects returned by urlopencgohlke2013-10-151-0/+2
| | | | | | | | | Fix `ResourceWarning: unclosed file` on Python 3
* | | Fix example plot of Laplace distributionNiklas Koep2013-10-151-2/+2
| | | | | | | | | 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.
* | | BUG: Check that npyiter is not too largeSebastian Berg2013-10-152-1/+15
| | | | | | | | | | | | | | | Since NpyIter keeps track of the total size, this cannot be larger then npy_intp, so that an overflow check is necessary.
* | | MAINT: add library sources to some dependenciesJulian Taylor2013-10-151-19/+16
| | | | | | | | | | | | | | | fixes missing recompilation of parts of numpy when the static libraries change.
* | | ENH: add scalarmathmodule.h.src with integer overflow functionsJulian Taylor2013-10-157-150/+49
| | | | | | | | | | | | and use them in scalarmathmodule.c instead of the old (disabled) ones.
* | | MAINT: add src/private in build_dir to include search pathsJulian Taylor2013-10-143-562/+16
| | | | | | | | | | | | allows generating headers like npy_partition.h with the code generator
* | | Merge pull request #3820 from juliantaylor/microoptCharles Harris2013-10-146-18/+35
|\ \ \ | |/ / |/| | A couple micro optimizations
| * | TST: improve test speedJulian Taylor2013-09-282-1/+2
| | | | | | | | | | | | | | | | | | | | | 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.
| * | ENH: reduce calls to npy_is_aligned in _IsAlignedJulian Taylor2013-09-281-6/+7
| | | | | | | | | | | | | | | one can just bitwise_or the memory and all strides and call npy_is_aligned on that to get the same result.
| * | ENH: speed up intp multiply overflow checkJulian Taylor2013-09-283-11/+26
| | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #3906 from mhvk/ma/test-pep8-and-cleanupCharles Harris2013-10-136-739/+662
|\ \ \ | |_|/ |/| | Convert docstrings to comments for nose; PEP8 cleanup (some tests activated)
| * | One revert (comparisons with None; not PEP8, but good to check); extra commentsMarten van Kerkwijk2013-10-122-10/+13
| | |
| * | Small further cleanups of ma.tests, plus correction for python3Marten van Kerkwijk2013-10-122-7/+8
| | |
| * | Convert docstrings to comments for nose; PEP8 cleanup (some tests activated)Marten van Kerkwijk2013-10-126-748/+667
| | |
* | | Merge pull request #3900 from mhvk/ma/pass-on-NotImplementedCharles Harris2013-10-122-0/+30
|\ \ \ | |/ / | | | BUG Ensure NotImplemented is passed on in MaskedArray ufunc's
| * | Small corrections to testsMarten van Kerkwijk2013-10-121-8/+9
| | |
| * | Add test cases to ensure NotImplemented is passed onMarten van Kerkwijk2013-10-121-0/+20
| | |
| * | Ensure NotImplemented is passed on in MaskedArray ufunc'sMarten van Kerkwijk2013-10-121-0/+9
| | |
* | | STY: linalg: fix C comment stylePauli Virtanen2013-10-121-6/+10
| | |
* | | BUG: linalg: don't tell BLAS to use zero stridesPauli Virtanen2013-10-122-6/+52
| | | | | | | | | | | | At least OSX Accelerate fails for this case.
* | | ENH: add faster boolean count by using wider data typesJulian Taylor2013-10-122-2/+77
|/ / | | | | | | about 3-5 times faster on 64 bit machines, about 2 times faster on i386.
* | Merge pull request #3862 from juliantaylor/null-freenjsmith2013-10-1110-103/+45
|\ \ | | | | | | MAINT: accept NULL in NpyIter_Deallocate and remove redundant NULL checks
| * | MAINT: accept NULL in NpyIter_Deallocate and remove redundant NULL checksJulian Taylor2013-10-0310-103/+45
| | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | Merge pull request #3829 from jarondl/pep8-npyioCharles Harris2013-10-101-59/+53
|\ \ \ | | | | | | | | STY: pep8 for npyio
| * | | STY: pepe8 for npyio continued 2 (typo)Yaron de Leeuw2013-10-111-1/+1
| | | | | | | | | | | | | | | | fixing one typo in npyio.py
| * | | STY: pep8 for npyio continuedYaron de Leeuw2013-10-061-7/+4
| | | | | | | | | | | | | | | | Two slight style modifications in npyio, regarding line length.
| * | | STY: pep8 for npyioYaron de Leeuw2013-09-291-60/+57
| | | | | | | | | | | | | | | | | | | | | | | | Various pep8 fixes for npyio.py Also reorganized the imports, and removed the unnecessary (I hope) `_string_like = _is_string_like` statement.
* | | | Merge pull request #3885 from Nodd/py3_infoCharles Harris2013-10-102-1/+20
|\ \ \ \ | | | | | | | | | | BUG: Disable check for oldstyle classes in python3 (np.info)
| * | | | TST: Raise AssertionError on failureJoseph Martinot-Lagarde2013-10-101-0/+2
| | | | |
| * | | | TST: Regression test for gh-2561Joseph Martinot-Lagarde2013-10-091-0/+14
| | | | |
| * | | | BUG: Disable check for oldstyle classes in python3Joseph Martinot-Lagarde2013-10-091-1/+4
| | | | | | | | | | | | | | | | | | | | Fixes gh-2561
* | | | | Update memmap.pyAndreas Hilboll2013-10-101-1/+3
| | | | | | | | | | | | | | | Clarify `memmap` docstring to better reflect the meaning of *offset*.
* | | | | TST: linalg: better rtol choicePauli Virtanen2013-10-081-1/+5
| | | | |
* | | | | TST: linalg: add slightly bigger test case + don't catch KeyboardInterruptPauli Virtanen2013-10-081-1/+9
| | | | |
* | | | | MAINT: linalg: strip out unused gufuncs_linalg codePauli Virtanen2013-10-073-3109/+4
| | | | | | | | | | | | | | | | | | | | | | | | | Some of the functions removed were untested, and apparently did not function correctly (cholesky_up, inner1d, maybe more).
* | | | | BUG: linalg: fix eigvalsh return type (always real-valued)Pauli Virtanen2013-10-071-1/+1
| | | | |
* | | | | BUG: linalg: use correct BLAS incx convention in xCOPYPauli Virtanen2013-10-071-6/+22
| | | | |
* | | | | TST: linalg: add more comprehensive test cases for linalg funcsPauli Virtanen2013-10-071-223/+332
|/ / / / | | | | | | | | | | | | | | | | | | | | Also remove TestCase subclassing, so that generator tests work. Also fix bugs in the existing generator tests that were not actually run previously.
* | | | BUG: Include sunmath.h in npy_math.h when __SUNPRO_CC defined.Charles Harris2013-10-061-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | The include is needed for isinf. Closes #3871.
* | | | Merge pull request #3769 from juliantaylor/percentile-compatseberg2013-10-052-24/+182
|\ \ \ \ | | | | | | | | | | BUG: ensure percentile has same output structure as in 1.8