Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | MAINT: Use np.errstate context manager. | Charles Harris | 2013-07-11 | 20 | -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 #3510 from mwtoews/master | Charles Harris | 2013-07-09 | 1 | -0/+12 |
|\ | | | | | Add regression tests for pickleable record arrays | ||||
| * | Add regression tests for pickleable record arrays | mwtoews | 2013-07-09 | 1 | -0/+12 |
| | | |||||
* | | Merge pull request #3501 from inducer/master | Charles Harris | 2013-07-09 | 2 | -0/+50 |
|\ \ | |/ |/| | Fix "numpy scalar * array-like == performance horror" | ||||
| * | BUG: Check earlier for higher priority in binary operators, add test | Andreas Kloeckner | 2013-07-08 | 2 | -0/+50 |
| | | | | | | | | Fixes #3375 | ||||
* | | Merge pull request #3491 from ContinuumIO/astype_fix2 | Charles Harris | 2013-07-08 | 3 | -20/+77 |
|\ \ | | | | | | | Fix creation of string arrays from object types | ||||
| * | | STY: Formatting changes | Jay Bourque | 2013-07-08 | 3 | -18/+13 |
| | | | |||||
| * | | BUG: Fix creation of string arrays from object types | Jay Bourque | 2013-07-08 | 3 | -17/+79 |
| | | | |||||
* | | | ENH: vectorize boolean comparisons of floats | Julian Taylor | 2013-07-08 | 4 | -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-3592 | njsmith | 2013-07-08 | 2 | -23/+54 |
|\ \ \ | | | | | | | | | Fix exceptions being swallowed by fromiter. | ||||
| * | | | STY: Fix trailing whitespace and replace test doctrings by comments. | Charles Harris | 2013-07-03 | 1 | -13/+13 |
| | | | | |||||
| * | | | BUG: Remove xrange that slipped into test_numeric.py. | Charles Harris | 2013-07-03 | 1 | -1/+1 |
| | | | | |||||
| * | | | TST: Add tests for exceptions raised by fromiter. | Fernando Perez | 2013-07-03 | 1 | -6/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | This improves the testing of the edge cases. Work done with @certik. | ||||
| * | | | BUG: Fix exceptions being swallowed by fromiter. | Fernando Perez | 2013-07-03 | 1 | -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øystad | 2013-07-05 | 1 | -0/+8 |
| | | | |||||
* | | | BUG: Allow to pad arrays by zero entries. | Jostein Bø Fløystad | 2013-07-05 | 1 | -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 Harris | 2013-07-02 | 2 | -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-init | njsmith | 2013-06-30 | 2 | -18/+211 |
|\ \ | | | | | | | Add convenience functions nans, infs, nans_like, infs_like | ||||
| * | | Rename filled, filled_like to full, full_like | Johannes Schönberger | 2013-06-30 | 2 | -21/+21 |
| | | | |||||
| * | | Update default dtype of filled function in doc string | Johannes Schönberger | 2013-06-06 | 1 | -1/+1 |
| | | | |||||
| * | | Rename fill value parameter for consistency across numpy+ | Johannes Schönberger | 2013-06-06 | 2 | -11/+11 |
| | | | |||||
| * | | Add examples to doc string of filled and filled_like | Johannes Schönberger | 2013-06-06 | 1 | -0/+25 |
| | | | |||||
| * | | Add separate parameter description to filled, filled_like and ones | Johannes Schönberger | 2013-06-06 | 1 | -6/+35 |
| | | | |||||
| * | | Fix Python 3 test cases for filled* functions | Johannes Schönberger | 2013-06-06 | 1 | -3/+7 |
| | | | |||||
| * | | Do not compare string or unicode values | Johannes Schönberger | 2013-06-06 | 1 | -1/+1 |
| | | | |||||
| * | | Add doc string to creation test class | Johannes Schönberger | 2013-06-06 | 1 | -0/+2 |
| | | | |||||
| * | | Comment test cases | Johannes Schönberger | 2013-06-06 | 1 | -6/+10 |
| | | | |||||
| * | | Add tests for zeros, ones, empty and filled | Johannes Schönberger | 2013-06-06 | 1 | -0/+45 |
| | | | |||||
| * | | Add filled_like to doc string of test class | Johannes Schönberger | 2013-06-06 | 1 | -1/+1 |
| | | | |||||
| * | | Use more idiomatic way of None-check | Johannes Schönberger | 2013-06-06 | 1 | -1/+1 |
| | | | |||||
| * | | Use commin method to compare array values | Johannes Schönberger | 2013-06-06 | 1 | -40/+16 |
| | | | |||||
| * | | Add tests for filled_like function | Johannes Schönberger | 2013-06-06 | 2 | -21/+54 |
| | | | |||||
| * | | Fix doc string | Johannes Schönberger | 2013-06-06 | 1 | -3/+1 |
| | | | |||||
| * | | Replace nans, nans_like, infs, infs_like with filled functions | Johannes Schönberger | 2013-06-06 | 1 | -93/+15 |
| | | | |||||
| * | | Fix typo in doc string | Johannes Schönberger | 2013-06-06 | 1 | -4/+4 |
| | | | |||||
| * | | Add short note in doc string about dtype for non-numbers | Johannes Schönberger | 2013-06-06 | 1 | -0/+12 |
| | | | |||||
| * | | Add more related functions | Johannes Schönberger | 2013-06-06 | 1 | -0/+5 |
| | | | |||||
| * | | Add nans, infs, nans_like, infs_like convenience functions | Johannes Schönberger | 2013-06-06 | 1 | -1/+139 |
| | | | |||||
* | | | Merge pull request #3461 from charris/fix-load-resource-warning | Charles Harris | 2013-06-29 | 2 | -5/+22 |
|\ \ \ | |_|/ |/| | | BUG: Make np.load transfer file ownership to the returned NpzFile. | ||||
| * | | BUG: Make np.load transfer file ownership to the returned NpzFile. | Charles Harris | 2013-06-22 | 2 | -5/+22 |
| | | | | | | | | | | | | | | | | | | | | | This assures that when the loaded file is closed it also closes the file descriptor, avoiding a resource warning in Python3. Closes #3457. | ||||
* | | | BUG: numpy.random.binomial raised ValueError for n == 0 | HaroldMills | 2013-06-28 | 3 | -1557/+1608 |
| | | | | | | | | | | | | | | | | | | Range test for n was incorrect. Closes #3480 | ||||
* | | | BUG: add module extensions to load_library search list | Julian Taylor | 2013-06-25 | 1 | -11/+5 |
| | | | | | | | | | | | | | | | on mac, windows and linux (with >= py3.2) shared libraries and loadable module have different extensions, so check both for all platforms. | ||||
* | | | Merge pull request #3466 from juliantaylor/vectorize-bool | Charles Harris | 2013-06-23 | 2 | -7/+60 |
|\ \ \ | | | | | | | | | vectorize boolean reductions | ||||
| * | | | ENH: vectorize boolean reductions | Julian Taylor | 2013-06-23 | 2 | -0/+54 |
| | | | | | | | | | | | | | | | | | | | | Improves performance by a factor of 5 to 10 depending on the cpu. These operations currently can't be autovectorized by gcc 4.8. | ||||
| * | | | MAINT: make binary_scalar2 static and put __m128i into a template | Julian Taylor | 2013-06-23 | 1 | -7/+6 |
| |/ / | |||||
* | | | Merge pull request #3429 from juliantaylor/copy-unroll | Charles Harris | 2013-06-23 | 4 | -2/+40 |
|\ \ \ | |/ / |/| | | ENH: tell gcc to unroll strided copy loops | ||||
| * | | ENH: tell gcc to unroll strided copy loops | Julian Taylor | 2013-06-13 | 4 | -2/+40 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The strided copy loops profit a lot from unrolling as the number of operations executed is in each iterations very small. GCC needs to be told explicitly to do unrolling even on O3. Unrolling is only profitable if the move can be done in a single instruction, else the increased code size makes it slower, thus the flag is only used for operations on element sizes less equal the native pointer size. Tested to improve performance of by 20-50% on intel core2duo, xeon 5xxx/7xxx and amd phenom x4. | ||||
* | | | BUG: Campanion Matrix was scalar, not matrix for degree 1. | Charles Harris | 2013-06-20 | 12 | -6/+102 |
| | | | | | | | | | | | | | | | | | | | | | | | | The companion matrices returned by the various polynomial types was a scalar in the degree one case instead of a 2-D array. Fix that and add a test to check for that result. Closes #3459. | ||||
* | | | Merge pull request #3455 from Hoops/copy_and_swap_stride_dst | Charles Harris | 2013-06-19 | 1 | -7/+6 |
|\ \ \ | | | | | | | | | Possible memory overwrite in copy_and_swap | ||||
| * | | | Call to byte_swap_vector should use dst, not d1, because this is | Andrew Horton | 2013-06-16 | 1 | -7/+6 |
| | | | | | | | | | | | | | | | | | | | | modified by the call to the strided memcpy and will end up pointing after the end of the destination buffer in that case. |