summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* MAINT: Fix some typos in a code string and commentsDongjoon Hyun2016-01-2730-38/+38
|
* MAINT: warn in egg_info command if using setuptools.sdist.Ralf Gommers2016-01-271-0/+8
| | | | | | Warn in numpy/distutils/command/egg_info.py if using setuptools.sdist. See gh-7127 for details.
* TST: Fixed f2py test for non-versioned python executablesgfyoung2016-01-251-4/+13
| | | | | | | | | | | The 'sys.executable' can come in various names, but the three main ones are "python", "python{major_version}", and "python{major_version.minor_version}". The current version of the f2py test assumes that only the latter two are used. Since "f2py" is generally versioned, using the executable basename "python" will make it impossible to find. This commit fixes that issue by using a sure-fire way of getting the Python version.
* TST: Fixed f2py test for win32 virtualenvgfyoung2016-01-251-1/+7
| | | | | | | | Fixed test_scripts.test_f2py test so that it can pass correctly on win32 virtualenvs, in which the Python executable and the f2py.py file are both in the Scripts directory.
* BUG: One element array inputs get one element arrays returned in np.randomgfyoung2016-01-242-188/+274
| | | | | | | | | | | | | | | Fixes bug in np.random methods that would return scalars when passed one-element array inputs. This is because one-element ndarrays can be cast to integers / floats, which is what functions like PyFloat_AsDouble do before converting to the intended data type. This commit changes the check used to determine whether the inputs are purely scalar by converting all inputs to arrays and checking if the resulting shape is an empty tuple (scalar) or not (array). Closes gh-4263.
* DOC: Clarified output size for broadcastable mtrand.pyx functionsgfyoung2016-01-231-182/+243
| | | | | | | Clarified the output size depending on whether scalar or non-scalar inputs are passed to functions in mtrand.pyx that can broadcast their arguments.
* TST: Added broadcasting tests in test_random.pygfyoung2016-01-232-87/+644
| | | | | | Added a whole new suite of tests to ensure that functions in mtrand.pyx which are broadcastable actually broadcast their arguments properly.
* DOC: Update `norm` docstring to include examples that reflect that all ↵John Kirkham2016-01-221-8/+8
| | | | computations are done with floating point numbers.
* BUG: Make sure that the `ord=0` case returns a float.John Kirkham2016-01-222-5/+2
|
* TST: Verify that `norm` is properly casting values to floats as needed.John Kirkham2016-01-221-0/+96
|
* BUG: In `norm`, always cast non-floating point arrays to 64-bit floats. ↵John Kirkham2016-01-221-0/+3
| | | | Otherwise, weird integer roundoff errors give faulty results in some cases.
* BLD: fix compilation on non glibc-LinuxesDmitry Odzerikho2016-01-221-11/+8
| | | | | Non-glibc Linuxes dont have the __GLIBC_PREREQ function and compilation of numpy fails on such platforms.
* MAINT: Simplified mtrand.pyx helpersgfyoung2016-01-201-104/+74
| | | | | | | Refactored methods that broadcast arguments together by finding additional common ground between code in the if...else branches that involved a size parameter being passed in.
* REL: Prepare for 1.10.x branch.Charles Harris2016-01-192-0/+2
| | | | | | | * Add comment to cversions.txt (no change) * Add comment to setup_common.py (no change) * Nothing done for numpy/core/include/numpy/numpyconfig.h * Update log start to 1.10.0 in pavement.py.
* Merge pull request #7027 from gfyoung/test_fromnumeric_expandCharles Harris2016-01-194-198/+490
|\ | | | | TST, MAINT: Lots of new tests for fromnumeric.py
| * TST: Added lots of new tests for fromnumeric.pygfyoung2016-01-184-198/+490
| |
* | Merge pull request #7052 from charris/fixup-polynomialsCharles Harris2016-01-197-138/+105
|\ \ | | | | | | Refactor functionality added to the numpy.polynomial package in #6360.
| * | MAINT: Refactor polynomial leastsquares fits.Charles Harris2016-01-197-138/+105
| |/ | | | | | | | | | | | | * Rewrite the documentation for `deg`. * Check that the passed degrees are int and raise if not. * Do not accept `deg` arguments that do not convert as 0-D or 1-D. * Sort passed degree terms for repeatability.
* | Merge pull request #7053 from tushar-rishav/ifft_RAM_requirementsCharles Harris2016-01-191-1/+1
|\ \ | | | | | | BUG: Should fix astype cast bug in numpy.fft module
| * | BUG:Should fix astype cast bug in numpy.fft moduleTushar Gautam2016-01-191-1/+1
| |/ | | | | | | Closes #6693
* | TST: Add tests for NAT comparison FutureWarning.Charles Harris2016-01-181-0/+28
| | | | | | | | | | The behavior of NAT comparisons will change in Numpy 1.13. Make sure that a FutureWarning is emitted when the results will change.
* | DEP: Emit FutureWarning for NAT comparisons.Charles Harris2016-01-181-3/+41
|/ | | | | | In Numpy 1.13 the plan is for NAT comparisons to behave like NaN comparisons, e.g., False except for 'NAT != NAT', which will be True. See the discussion at gh-7019 for details.
* TST: Add tests for check_fit with deg specified as listJonathan Underwood2016-01-181-0/+9
|
* ENH: Allow specification of terms to fit in fit methodJonathan Underwood2016-01-181-2/+8
|
* TST: Add tests for hermefit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in hermefitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for polyfit with deg specified as listJonathan Underwood2016-01-181-0/+27
|
* ENH: Allow specification of terms to fit in polyfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for lagfit with deg specified as listJonathan Underwood2016-01-181-0/+16
|
* ENH: Allow specification of terms to fit in lagfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for hermfit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in hermfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for chebfit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in chebfitJonathan Underwood2016-01-181-5/+34
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: Add tests for legfit with deg specified as listJonathan Underwood2016-01-181-0/+31
|
* ENH: Allow specification of terms to fit in legfitJonathan Underwood2016-01-181-8/+39
| | | | | | | | | | The argument `deg` is enhanced to allow an array_like argument to past which specifies which terms to include in the fit. The returned coef array is exapnded to have entries of 0 for all coefficients which were not included in the fit.
* TST: np.isclose, correct error msg on testAndrew Nelson2016-01-181-1/+1
|
* Merge pull request #7048 from zerothi/enh-fix-distutils.libsCharles Harris2016-01-171-1/+4
|\ | | | | ENH: Allow site.cfg information with libraries key
| * ENH: Allow site.cfg information with libraries keyNick Papior2016-01-171-1/+4
| | | | | | | | | | | | | | | | | | | | This PR fixes the case when users create a site.cfg to fix library locations, but does not change the library names. Now numpy.distutils correctly checks all options related to libraries by defaulting to the library from the class via _lib_names Signed-off-by: Nick Papior <nickpapior@gmail.com>
* | Merge pull request #6608 from stuarteberg/fix-api-version-warning-intsCharles Harris2016-01-171-2/+2
|\ \ | | | | | | MAINT: Add '0x' to API version error for clarity.
| * | MAINT: Add '0x' to API version error for clarity.Stuart Berg2016-01-171-2/+2
| | |
* | | Merge pull request #5981 from dfreese/fix/multi_percent_nanperc_bugJulian Taylor2016-01-172-3/+34
|\ \ \ | |_|/ |/| | BUG: Handle multiple percentiles for all-nan slices in nanpercentile
| * | BUG: Fix nanpercentile crash on all-nan slicesDavid Freese2016-01-122-3/+34
| | | | | | | | | | | | | | | | | | | | | | | | Fix bug where nanpercentile would crash with an all-nan slices when given multiple percentiles. Also corrects behavior where array sizes different from numpy.percentile would be returned with keepdims enabled. Fix #5760
* | | Merge pull request #6933 from anntzer/fastshuffle-memcpyNathaniel J. Smith2016-01-172-36/+61
|\ \ \ | | | | | | | | memcpy-based fast, typed shuffle.
| * | | Revert to non-generative test.Antony Lee2016-01-161-5/+4
| | | |
| * | | Top shuffle speed for machine-sized ints/floats.Antony Lee2016-01-161-8/+18
| | | | | | | | | | | | | | | | | | | | | | | | Apparently gcc only specializes one branch (the last one) so I went for another 33% performance increase (matching #6776) in what's likely the most common use case.
| * | | MAINT: memcpy-based ~4x faster, typed shuffle.Antony Lee2016-01-162-40/+56
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Only for 1d-ndarrays exactly, as subtypes (e.g. masked arrays) may not allow direct shuffle of the underlying buffer (in fact, the old implementation destroyed the underlying values of masked arrays while shuffling). Also handles struct-containing-object 1d ndarrays properly. See #6776 for an earlier, less general (but even faster: ~6x) improvement attempt, #5514 for the original issue.
* | | | Merge pull request #7042 from charris/revert-7001Charles Harris2016-01-168-135/+24
|\ \ \ \ | |/ / / |/| | | Revert "Merge pull request #7001 from shoyer/NaT-comparison"
| * | | Revert "Merge pull request #7001 from shoyer/NaT-comparison"Charles Harris2016-01-168-135/+24
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This reverts commit 7141f40b58ed1e7071cde78ab7bc8ab37e9c5983, reversing changes made to 8fa6e3bef26a6d4a2c92f2824129aa4409be2590. The original broke some pandas tests. The current plan to get this in is * reversion * issue FutureWarning in 1.11 and 1.12 * make the change in 1.13.
* | | | Merge pull request #6453 from shoyer/naive-datetime64Charles Harris2016-01-1610-450/+345
|\ \ \ \ | | | | | | | | | | API: Make datetime64 timezone naive