summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | Add more unit tests for 'at' methodJay Bourque2013-08-161-18/+61
| |
* | Correct implementation of 'at' method that covers all corner casesJay Bourque2013-08-161-25/+22
| |
* | Only allow explicit index slicing in 'at' methodJay Bourque2013-08-161-0/+15
| |
* | Add comment to 'at' method unit testJay Bourque2013-08-161-1/+0
| |
* | Update documentation for 'at' methodJay Bourque2013-08-161-0/+41
| |
* | Update/expand unit testsJay Bourque2013-08-161-11/+34
| |
* | Rework 'at' method to fit customer's expectations.Jay Bourque2013-08-161-17/+25
| | | | | | | | 'at' method should be functionally equivalent to op1[idx] += op2 (for add ufunc).
* | Misc fixesJay Bourque2013-08-161-29/+36
| | | | | | | | | | | | - Fix crash when bind for second map iter fails - Accept array like object for second operand - Fix memory leaks
* | Check for sucessful call to MapIterBindJay Bourque2013-08-161-0/+8
| |
* | Add unit testsJay Bourque2013-08-161-0/+14
| | | | | | | | | | | | Conflicts: numpy/core/tests/test_ufunc.py
* | Change 'select' method name to 'at'Jay Bourque2013-08-161-3/+3
| |
* | Add commentsJay Bourque2013-08-161-1/+8
| |
* | Add support for both unary and binary ufuncsJay Bourque2013-08-161-19/+93
| |
* | Proof-of-concept for ufunc fancy indexingJay Bourque2013-08-162-0/+58
| | | | | | | | | | | | Conflicts: numpy/core/code_generators/numpy_api.py
* | ENH: use PyDataMem_NEW_ZEROED for PyArray_ZerosJulian Taylor2013-08-162-11/+52
| | | | | | | | | | | | | | | | | | PyDataMem_NEW_ZEROED uses calloc which will take advantage of the fact that most operating systems provide already zero initialized memory blocks on larger allocations. Additionally this memory can be sparse (= mapped to a single zero page) on some systems (e.g. linux) reducing memory usage of applications using sparse arrays.
* | ENH: add PyDataMem_NEW_ZEROED which allocates memory with callocJulian Taylor2013-08-163-2/+23
| |
* | Merge pull request #2721 from abalkin/masterCharles Harris2013-08-151-1/+1
|\ \ | | | | | | Mistake in linalg.eig() documentation
| * | Fixed a mistake in linalg.eig() documentation.Alexander Belopolsky2012-11-091-1/+1
| | |
* | | TST: Test that savetxt works with objects having a write method.Daniel2013-08-151-0/+12
| | |
* | | ENH: Make savetxt work with file like objects.Daniel2013-08-151-1/+1
| | | | | | | | | | | | | | | Accept any object with a "write" method as that is the only method called by the code.
* | | DOC: Merge doc updates from http://docs.scipy.org/numpy/patch/.Charles Harris2013-08-152-17/+17
| | | | | | | | | | | | Preparatory to 1.8.0 branch.
* | | Merge pull request #3534 from charris/nan-stat-functionsCharles Harris2013-08-1511-524/+1507
|\ \ \ | | | | | | | | Add nanmean, nanvar, and nanstd functions.
| * | | DOC: Various fixes.Charles Harris2013-08-142-19/+18
| | | | | | | | | | | | | | | | | | | | | | | | Fix typos and clarify some explanations. Document the changes in the return values of nanargmin and nanargmax for all-NaN slices in the 1.8.0 release notes.
| * | | BUG: Regression test needs to ignore ComplexWarning.Charles Harris2013-08-121-8/+11
| | | | | | | | | | | | | | | | This was raising a warning during tests.
| * | | TST: Add tests for the nansum, nanmean, nanvar, and nanstd.Charles Harris2013-08-121-190/+367
| | | |
| * | | MAINT: Refactor nanfunctions.Charles Harris2013-08-122-333/+469
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | nanmax, nanmin -------------- Add out and keepdims keywords. nanargmin, nanargmax -------------------- A NanWarning is raised if an all NaN slice detected. For all such slices np.iingo(np.intp).min is returned as the index value. nansum ------ The keywords dtype, out, and keepdims are added. A FutureWarning is raised, as in the future the mean of an empty slice after NaN replacement will be 0 instead of the current NaN. nanmean, nanvar, nanstd ----------------------- For all, if the input array is of inexact type then the dtype and out parameters must be of inexact type if specified. That insures that NaNs can be returned when appropriate. The nanmean function detects empty slices after NaN replacement and raises a NanWarning. NaN is returned as the value for all such slices. The nanmean and nanstd functions detect degrees of freedom <= 0 after NaN replacement and raise a NanWarning. NaN is returned as the value for all such slices.
| * | | TST: Add more extensive tests for the mean, var, and std methods.Charles Harris2013-08-122-1/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Test the mean, var, and std methods more extensively. In addition, add tests that: Check that scalar return types ar what they should be. Check that ValueError is raised when ddof is too big.
| * | | ENH: Make var and std methods raise error when ddof too big.Charles Harris2013-08-121-23/+29
| | | | | | | | | | | | | | | | | | | | Currently the results may be infinite or negative. Instead, raise a ValueError in this case.
| * | | BUG: Make mean, sum, var, std methods return correct scalar type.Charles Harris2013-08-121-10/+10
| | | | | | | | | | | | | | | | | | | | The return type could differ depending on whether or not the value was a scalar.
| * | | MAINT: Clean up core/_methods.py and core/fromnumeric.pyCharles Harris2013-08-122-17/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Use issubclass instead of issubdtype. Add some blank lines. Remove trailing whitespace. Remove uneeded float casts since true_divide is default. Clean up documentation a bit.
| * | | MAINT: Separate nan functions into their own module.Charles Harris2013-08-128-916/+946
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | New files lib/nanfunctions.py and lib/tests/test_nanfunctions.py are added and both the previous and new nan functions and tests are moved into them. The existing nan functions moved from lib/function_base are: nansum, nanmin, nanmax, nanargmin, nanargmax The added nan functions moved from core/numeric are: nanmean, nanvar, nanstd
| * | | TST: Added tests for nanmean(), nanvar(), nanstd()Benjamin Root2013-08-122-10/+134
| | | |
| * | | ENH: Adding np.nanmean(), np.nanstd(), np.nanvar()Benjamin Root2013-08-122-2/+340
| | | |
* | | | Merge pull request #3608 from charris/remove-1.8-diagonal-refsCharles Harris2013-08-152-3/+3
|\ \ \ \ | | | | | | | | | | DOC: Remove references to diagonal changes in 1.8.
| * | | | DOC: Remove references to diagonal changes in 1.8.Charles Harris2013-08-122-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Not happening. Also remove reference to selecting multiple fields out of an array returning a view from 1.8.0 release notes. Closes #3228.
* | | | | Merge pull request #3619 from charris/update-ABI-version-and-hashRalf Gommers2013-08-144-3/+11
|\ \ \ \ \ | | | | | | | | | | | | Update abi version and hash
| * | | | | MAINT: Update API version and API hash.Charles Harris2013-08-143-1/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In preparation for the 1.8 release, update the API version to 0x00000009 and the API hash to f99a02b75bd60205d1afe1eed080fd53.
| * | | | | BUG: Replace relative imports in cversions.py.Charles Harris2013-08-141-2/+2
| | |/ / / | |/| | | | | | | | | | | | | | | | | | Scripts should not use relative imports as they won't work in a non-package environment.
* | | | | DOC fix legacy a.size() -> a.size in np.ravel docstringjnothman2013-08-131-1/+1
|/ / / /
* | | | BUG: Fix additional zero-sized index case for ufunc.reduceatMark Wiebe2013-08-121-11/+27
| | | |
* | | | TST: Add test for additional ufunc.reduceat empty parameter caseMark Wiebe2013-08-121-0/+8
| | | |
* | | | TST: Change reduceat empty test to use i4 indicesMark Wiebe2013-08-121-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | On 32-bit platforms, was failing in casting the test i8 index to i4. It may be desirable to allow this in reduceat, but that change is independent of this pull request.
* | | | BUG: Fix ufunc.reduceat regression with empty index (gh-2892)Mark Wiebe2013-08-121-2/+15
| | | |
* | | | TST: Add test for reduceat ufunc regression on zero-sized arrayMark Wiebe2013-08-121-0/+7
| | | |
* | | | Merge pull request #3609 from mwiebe/fill_struct_from_tupleCharles Harris2013-08-122-1/+16
|\ \ \ \ | | | | | | | | | | Bugfix: Regression when filling struct from tuple
| * | | | BUG: Fix to allow x.fill(tuple) where x is a struct arrayMark Wiebe2013-08-121-1/+8
| | | | |
| * | | | TST: Test for x.fill(tuple) where x is a struct arrayMark Wiebe2013-08-121-0/+8
| |/ / /
* | | | BLD: Fix build on MSVC (no uint64_t, use npy_uint64)Mark Wiebe2013-08-121-4/+4
|/ / /
* | | Merge pull request #3607 from stefanv/select_doc_typosCharles Harris2013-08-121-2/+2
|\ \ \ | | | | | | | | DOC: Fix small typos in partition docstring.
| * | | DOC: Fix small typos in partition docstring.Stefan van der Walt2013-08-121-2/+2
| | | |