summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* ENH: inv/solve work with empty inner and others empty outer arraySebastian Berg2013-08-042-16/+82
| | | | | | | This makes the inverse of a 0x0 array simply be 0x0 again. It also modifies the no-empty array check in favor of a no-empty *inner* array, since the gufuncs seem to handle the other case fine.
* MAINT: linalg: some more clean up in norm: 'nd' was defined but not usedWarren Weckesser2013-07-201-5/+4
|
* BUG: linalg: norm was computing and then ignoring a productWarren Weckesser2013-07-191-2/+1
|
* Merge pull request #3531 from fkbreitl/masternjsmith2013-07-181-15/+45
|\ | | | | Updated documentation for histogram2d() in twodim_base.py according to discussion
| * Update twodim_base.pyFrank Breitling2013-07-171-1/+1
| |
| * Update twodim_base.pyFrank Breitling2013-07-131-33/+44
| |
| * Fixed two typos.Frank B2013-02-051-2/+2
| |
| * Added example for 2D-histogram with variable bin size.Frank B2013-02-051-2/+21
| |
* | Merge pull request #3520 from charris/replace-warningmanagerRalf Gommers2013-07-1612-150/+70
|\ \ | | | | | | Replace use of WarningManager by warnings.catch_warnings and then deprecate it.
| * | MAINT: Remove uses of the WarningManager class.Charles Harris2013-07-1212-150/+70
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | WarningManager was a workaround for the lack of the with statement in Python versions < 2.6. As those versions are no longer supported it can be removed. Deprecation notes are added to WarningManager and WarningMessage, but to avoid a cascade of messages in third party apps, no warnings are raised at this time, that can be done later. Closes #3519.
* | | MAINT: Fix Python version dependent test.Charles Harris2013-07-121-16/+17
|/ / | | | | | | | | | | | | | | | | The buffer test in numpy/core/tests/test_api.py was apparently testing for incorrect behavior that was corrected in Python 2.7.5. This PR changes the test to check for the correct results and makes running it depend on Python version. Closes #3512.
* | Merge pull request #3518 from charris/use-errstate-context-managerCharles Harris2013-07-1120-409/+194
|\ \ | | | | | | MAINT: Use np.errstate context manager.
| * | MAINT: Use np.errstate context manager.Charles Harris2013-07-1120-409/+194
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Now that Python < 2.6 is no longer supported we can use the errstate context manager in places where constructs like ``` old = seterr(invalid='ignore') try: blah finally: seterr(**old) ``` were used.
* | | Merge pull request #3516 from charris/remove-outdated-version-checksnjsmith2013-07-1129-317/+16
|\ \ \ | | | | | | | | MAINT: Remove outdated version checks.
| * | | MAINT: Remove outdated version checks.Charles Harris2013-07-1129-317/+16
| |/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | Because Numpy 1.8.0 will no longer supports Python versions < 2.6 we no longer need to check for that and can also remove the code that is specific to those earlier versions. To make this a bit safer, the toplevel setup.py file now contains a check of the Python version number and raises an error when run by an unsupported version.
* | | Merge pull request #3509 from arinkverma/gsoc_performanceCharles Harris2013-07-103-14/+33
|\ \ \ | |/ / |/| | ENH: added short path scalar array in get_ufunc_arguments from ufunc_object.c
| * | ENH: check for the same object in can_cast_scalar_to from convert_datatype.cArink Verma2013-07-101-1/+5
| | | | | | | | | | | | | | | Check if two dtypes references to the same object in can_cast_scalar_to from convert_datatype.c, then the result is always OK
| * | ENH: added check for scalar array in PyArray_FromArray from ctors.cArink Verma2013-07-101-1/+2
| | | | | | | | | | | | Check if object is of array with newtype is NULL. If so return it directly instead of checking for casting.
| * | ENH: added check for scalar array in PyArray_FromArray from ctors.cArink Verma2013-07-081-4/+3
| | | | | | | | | | | | Check if object is of array with newtype is NULL. If so return it directly instead of checking for casting.
| * | ENH: added check for scalar array in PyArray_FromArray from ctors.cArink Verma2013-07-081-2/+0
| | | | | | | | | | | | Check if object is of array dimension zero with newtype is NULL. If so return it directly instead of checking for casting.
| * | ENH: added check for scalar array in PyArray_FromArray from ctors.cArink Verma2013-07-083-9/+15
| | | | | | | | | | | | Check if object is of array dimension zero with newtype is NULL. If so return it directly instead of checking for casting.
| * | ENH: added check for scalar array in get_ufunc_arguments from ufunc_object.cArink Verma2013-07-061-14/+25
| | | | | | | | | | | | Check if object is of array dimension zero, then avoid heavy calls like PyArray_FromAny. Hence passing obj to out_op PyArrayObject unchanged. Also PyArray_FromAny(obj,NULL,0,0,0,NULL) calls PyArray_FromArray(obj,NULL,0) which return original obj
* | | Merge pull request #3510 from mwtoews/masterCharles Harris2013-07-091-0/+12
|\ \ \ | | | | | | | | Add regression tests for pickleable record arrays
| * | | Add regression tests for pickleable record arraysmwtoews2013-07-091-0/+12
| | | |
* | | | Merge pull request #3501 from inducer/masterCharles Harris2013-07-092-0/+50
|\ \ \ \ | |/ / / |/| | | Fix "numpy scalar * array-like == performance horror"
| * | | BUG: Check earlier for higher priority in binary operators, add testAndreas Kloeckner2013-07-082-0/+50
| |/ / | | | | | | | | | Fixes #3375
* | | Merge pull request #3491 from ContinuumIO/astype_fix2Charles Harris2013-07-083-20/+77
|\ \ \ | | | | | | | | Fix creation of string arrays from object types
| * | | STY: Formatting changesJay Bourque2013-07-083-18/+13
| | | |
| * | | BUG: Fix creation of string arrays from object typesJay Bourque2013-07-083-17/+79
| | | |
* | | | ENH: vectorize boolean comparisons of floatsJulian Taylor2013-07-084-2/+238
| | | | | | | | | | | | | | | | | | | | | | | | the new code will more often propagate the invalid floating point exception if comparing against nan, so allclose now ignores it (but still returns False)
* | | | Merge pull request #3500 from charris/fix-3592njsmith2013-07-082-23/+54
|\ \ \ \ | | | | | | | | | | Fix exceptions being swallowed by fromiter.
| * | | | STY: Fix trailing whitespace and replace test doctrings by comments.Charles Harris2013-07-031-13/+13
| | | | |
| * | | | BUG: Remove xrange that slipped into test_numeric.py.Charles Harris2013-07-031-1/+1
| | | | |
| * | | | TST: Add tests for exceptions raised by fromiter.Fernando Perez2013-07-031-6/+30
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This improves the testing of the edge cases. Work done with @certik.
| * | | | BUG: Fix exceptions being swallowed by fromiter.Fernando Perez2013-07-031-10/+17
| | |/ / | |/| | | | | | | | | | | | | | | | | | | | | | All exceptions from underlying iterator were being collapsed into a generic one. This allows the original exception to propagate. Closes gh-2592.
* | | | TST: New test to ensure np.pad allows pad_width of zero.Jostein Bø Fløystad2013-07-051-0/+8
| | | |
* | | | BUG: Allow to pad arrays by zero entries.Jostein Bø Fløystad2013-07-051-1/+1
|/ / / | | | | | | | | | | | | np.pad will now accept a pad_width containing zeros. The functionality was already implemented, but validation of input was too strict.
* | | BUG: Fix failure to return monic polynomials from roots.Charles Harris2013-07-022-3/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This bug affected the various polynomial class methods fromroots due to the ability to specify both window and domain. In that circumstance the roots are mapped from the domain to the window by the substitution `x = off + scl*x`. The polynomial that was being generated was monic in the window before substitution, but if scl was not one it was not monic considered as a function of the variable x in the domain. The fix is to divide the generated coefficients by `scl ** deg` so that the scaling of the highest degree term after substitution is canceled. It might be better to make the scaling optional in the future, but this fix makes the result match the documentation. Closes #3467.
* | | Merge pull request #2875 from ahojnnes/array-initnjsmith2013-06-302-18/+211
|\ \ \ | | | | | | | | Add convenience functions nans, infs, nans_like, infs_like
| * | | Rename filled, filled_like to full, full_likeJohannes Schönberger2013-06-302-21/+21
| | | |
| * | | Update default dtype of filled function in doc stringJohannes Schönberger2013-06-061-1/+1
| | | |
| * | | Rename fill value parameter for consistency across numpy+Johannes Schönberger2013-06-062-11/+11
| | | |
| * | | Add examples to doc string of filled and filled_likeJohannes Schönberger2013-06-061-0/+25
| | | |
| * | | Add separate parameter description to filled, filled_like and onesJohannes Schönberger2013-06-061-6/+35
| | | |
| * | | Fix Python 3 test cases for filled* functionsJohannes Schönberger2013-06-061-3/+7
| | | |
| * | | Do not compare string or unicode valuesJohannes Schönberger2013-06-061-1/+1
| | | |
| * | | Add doc string to creation test classJohannes Schönberger2013-06-061-0/+2
| | | |
| * | | Comment test casesJohannes Schönberger2013-06-061-6/+10
| | | |
| * | | Add tests for zeros, ones, empty and filledJohannes Schönberger2013-06-061-0/+45
| | | |
| * | | Add filled_like to doc string of test classJohannes Schönberger2013-06-061-1/+1
| | | |