summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* ENH: Show subclass type in dtype repr and str of structured arraysAllan Haldane2015-01-243-3/+59
| | | | | | | | | | | | | | | | | | | | | | This is a modification to the dtype str and repr functions what helps solve https://github.com/numpy/numpy/issues/3581. I discussed it on the mailing list in a message "Re: structured arrays, recarrays, and record arrays" on Jan 19 2015. I didn't get any replies, but hopefully that merely means "no opinion" rather than "bad idea". What it does: For structured arrays, if the dtype is not np.void then print the dtype as `(base_dtype, dtype)`. New Behavior: >>> a = np.array([(1,'ABC'), (2, "DEF")], dtype=[('foo', int), ('bar', 'S4')]) >>> np.rec.array(a) rec.array([(1, 'ABC'), (2, 'DEF')], dtype=(numpy.record, [('foo', '<i8'), ('bar', 'S4')])) >>> a.view(np.recarray) rec.array([(1, 'ABC'), (2, 'DEF')], dtype=[('foo', '<i8'), ('bar', 'S4')])
* Merge pull request #5475 from ContinuumIO/pickle_string_fixCharles Harris2015-01-212-5/+10
|\ | | | | BUG: Fix #3926: pickling empty string fails
| * BUG: Fix #3926: pickling empty string failsJay Bourque2015-01-212-5/+10
|/
* Merge pull request #5468 from jaimefrio/swapaxes_viewCharles Harris2015-01-204-32/+55
|\ | | | | ENH: Make swapaxes always return a view. Fixes #5260
| * TST: swapaxes testsjaimefrio2015-01-201-0/+32
| |
| * ENH: Make swapaxes always return a viewjaimefrio2015-01-203-32/+23
| | | | | | | | | | swapaxes now returns a view of the input array when the axes to swap are both the same, not the input array as it used to do. Fixes #5260
* | Merge pull request #5471 from juliantaylor/faster-fastclipCharles Harris2015-01-203-8/+31
|\ \ | |/ |/| ENH: faster fastclip functions
| * ENH: faster fastclip functionsJulian Taylor2015-01-203-8/+31
|/ | | | | | | | | | | | copying the element in the loop via an else is significantly faster than copying first and skipping the else clause as it allows the compiler to use branchless instructions like minsd/maxsd. For floats this is 3 times faster for min xor max and 40% faster for min and max. Further improvements are possible via vectorization. There is a penalty for inplace clips due to higher memory bandwidth usage but it seems to be less than 10% and could be easily recovered with another template specialization if required.
* Merge pull request #5464 from charris/rollaxis-always-return-viewJaime2015-01-193-6/+80
|\ | | | | Rollaxis always return view
| * TST: Tests for numeric.rollaxis.Charles Harris2015-01-191-0/+63
| | | | | | | | There were no tests previous to this.
| * ENH: Make rollaxis always return a view.Charles Harris2015-01-192-6/+17
| | | | | | | | | | Previous to this commit, rollaxis returned a view unless the order of the axis was unchanged, in which case the input array was returned.
| * DOC : rollaxis returns a view of the input.jnothman2015-01-181-1/+1
|/
* Merge pull request #5462 from charris/gh-5453Charles Harris2015-01-172-18/+99
|\ | | | | MAINT/TST: Add test for require, stop making extra copies.
| * MAINT/TST: Add test for require, stop making extra copies.Eric Moore2015-01-172-18/+99
| | | | | | | | | | Also add ENSUREARRAY and a note about requiring native byteorder to the docs.
* | Merge pull request #5459 from rgommers/pareto-docstringCharles Harris2015-01-171-15/+15
|\ \ | | | | | | DOC: fix a few bugs in the random.pareto docstring. Closes gh-4181.
| * | DOC: fix a few bugs in the random.pareto docstring. Closes gh-4181.Ralf Gommers2015-01-171-15/+15
| | | | | | | | | | | | [ci skip]
* | | Merge pull request #5461 from rgommers/c-api-docCharles Harris2015-01-172-98/+87
|\ \ \ | | | | | | | | DOC: some small fixes to the "Using Python as glue" section of the user ...
| * | | DOC: some small fixes to the "Using Python as glue" section of the user guide.Ralf Gommers2015-01-172-98/+87
|/ / / | | | | | | | | | [ci skip]
* | | Merge pull request #5455 from gerritholl/masked_structured_datetime64Charles Harris2015-01-162-5/+25
|\ \ \ | |_|/ |/| | BUG: Fix #4476 by adding datetime64 and timedelta64 types
| * | TST: Add testcase for the fix to bug #4476.Gerrit Holl2015-01-151-0/+15
| | | | | | | | | | | | | | | | | | Add a testcase `test_fillvalue_datetime_timedelta` to class `TestFillingValues` for the fix to bug #4476. See commit 216fd17 and pull request #5455.
| * | BUG: Fix #4476 by adding datetime64 and timedelta64 typesGerrit Holl2015-01-151-5/+10
|/ / | | | | | | | | | | | | This commit fixes bug #4476 by adding the codes for the datetime64 and timedelta64 types to the `default_filler` dictionary in numpy.ma.core, used by `default_fill_value`. Also adapt checking in the `default_fill_value` to include code for timedelta64, not only datetime64.
* | Merge pull request #5446 from jaimefrio/linspace_denormals_againCharles Harris2015-01-142-26/+36
|\ \ | | | | | | BUG: linspace should return the same as arange when possible
| * | BUG: linspace should return the same as arange when equivalentjaimefrio2015-01-132-26/+36
| | | | | | | | | | | | Fixes failures on other projects (scipy.signal) introduced by #5438
* | | Merge pull request #5361 from JDWarner/arraypad_fixesCharles Harris2015-01-133-65/+580
|\ \ \ | | | | | | | | ENH: Improve arg handling & enhance test suite for `np.pad`
| * | | ENH: Improve arg handling & enhance test suite for np.padJosh Warner (Mac)2015-01-063-65/+580
| | | |
* | | | Merge pull request #5447 from juliantaylor/ma-median-ndarrayCharles Harris2015-01-132-2/+6
|\ \ \ \ | |_|/ / |/| | | BUG: fix ma.median used on ndarrays
| * | | BUG: fix ma.median used on ndarraysJulian Taylor2015-01-132-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | ndarrays have a data attribute pointing to the data buffer which leads to the median working on a byte view instead of the actual type. closes gh-5424
* | | | Merge pull request #5438 from jaimefrio/linspace_denormalJulian Taylor2015-01-132-21/+45
|\ \ \ \ | | | | | | | | | | BUG: linspace handling of denormals, fixes #5437
| * | | | BUG: linspace handling of denormals, fixes #5437jaimefrio2015-01-102-21/+45
| | | | |
* | | | | Merge pull request #5442 from tdihp/patch-1Jaime2015-01-111-1/+1
|\ \ \ \ \ | | | | | | | | | | | | Fix typo in slogdet doc
| * | | | | Fix typo in slogdet doctdihp2015-01-121-1/+1
|/ / / / / | | | | | | | | | | | | | | | | | | | | fix typo in slogdet docstring "than" -> "then"
* | | | | Merge pull request #5439 from charris/gh-5347Charles Harris2015-01-111-39/+164
|\ \ \ \ \ | | | | | | | | | | | | TST: Update assert_array_almost_equal_nulp tests
| * | | | | TST: Update assert_array_almost_equal_nulp testsRyan Nelson2015-01-111-39/+164
|/ / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fix addresses Issue #347. All of the tests in this class were using random numbers generated without a seed. This broke `test_simple` in a nondeterministic manner. Rewrote all tests for this function. Instead of using random numbers, well-defined arrays of widely varying amplitude were created instead. Changed the array modification values so that the test arrays were either just above or just below the NULP threshold. Added tests for float64, float32, complex128, and complex64 dtypes, and added both addition and subtraction tests. Tried to standardize the code for all tests.
* | | | | Merge pull request #5332 from rnelsonchem/dev_docsCharles Harris2015-01-115-194/+173
|\ \ \ \ \ | | | | | | | | | | | | DOC: Reorganization request for Development Workflow docs
| * | | | | DOC: Update Development Workflow PageRyan Nelson2015-01-105-194/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "Basic Workflow" section of the Development Workflow page was reorganized to make it clearer to new users and remove/update old material. Major changes: - Moved the core developer notes. Core dev notes are confusing in basic usage information. Updated a couple of the commands - Added more commands and reorgaized the "New Feature Branch" section. Took some text from "Rebasing" and moved it here, because it was redundant. - Made many changes to the "Editing Workflow" to clarify commands. Moved some git push stuff into this section as well. - Moved pull request section to just after editing workflow. Removed outdated images and simplified the text. Make code review requirements explicit. - Moved rebasing and troubleshooting sections to the end. Could add more here later. - Links renamed and broken link removed.
* | | | | | Merge pull request #5436 from aisthesis/seterrcall-docCharles Harris2015-01-111-5/+6
|\ \ \ \ \ \ | |_|/ / / / |/| | | | | DOC: Fix doc of seterrcall. Issue #4427
| * | | | | DOC: Fix doc of seterrcall. Issue #4427Marshall Farrier2015-01-101-5/+6
|/ / / / /
* | | | | Merge pull request #5432 from jrjohansson/polynomial-docstring-updatesCharles Harris2015-01-082-2/+2
|\ \ \ \ \ | |_|_|_|/ |/| | | | Minor docstring fix
| * | | | Minor docstring fixRobert Johansson2015-01-082-2/+2
|/ / / /
* | | | Merge pull request #4984 from MartinThoma/masterRalf Gommers2015-01-071-8/+12
|\ \ \ \ | | | | | | | | | | | | | | | DOC: style fixes for random.multivariate_normal docstring.
| * | | | DOC: style fixes for random.multivariate_normal docstring.Martin Thoma2015-01-071-8/+12
|/ / / /
* | | | Merge pull request #5421 from charris/special-case-matrixCharles Harris2015-01-065-31/+46
|\ \ \ \ | | | | | | | | | | Special case matrix
| * | | | DOC: Document changes to diag, diagonal, ravel in 1.10-notes.rst.Charles Harris2015-01-061-5/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The changes are that they all preserve ndarray subtypes with the exception of ravel, which still return 1-D arrays for backward compatibility.
| * | | | BUG: Make ravel function return 1-D arrays for matrix argument.Charles Harris2015-01-042-8/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is a backward compatibility hack to avoid breaking scipy.sparse after fixing ravel to respect subtypes. Subtypes are still respected except in the case of matrices and subclasses of matrices.
| * | | | BUG: Make diag, diagonal return 1-D arrays for matrix arguments.Charles Harris2015-01-043-18/+26
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is an ugly hack to preserve backwards compatibility for code that uses matrices. It is needed since both diag and diagonal have been changed to preserve subtypes otherwise. Note that a.diagonal() still returns matrices when a is a matrix.
* | | | | Merge pull request #5309 from rgommers/remove-f2py-deprecationCharles Harris2015-01-062-5/+0
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove NPY_NO_DEPRECATED_API define from f2py.
| * | | | | MAINT: remove NPY_NO_DEPRECATED_API define from f2py.Ralf Gommers2014-11-232-5/+0
| | |/ / / | |/| | | | | | | | | | | | | | | | | | See gh-5281 for discussion. With the defines in, compiling scipy 0.14.0 and below isn't possible.
* | | | | Merge pull request #5425 from mbyt/ensure_OPT_environment_variable_is_readCharles Harris2015-01-061-0/+12
|\ \ \ \ \ | | | | | | | | | | | | BLD: ensure OPT build environment variable is read
| * | | | | BLD: ensure OPT link environment variable is readmbyt2015-01-061-3/+6
| | | | | |
| * | | | | BLD: ensure OPT build environment variable is readmbyt2015-01-051-0/+9
|/ / / / /