Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | DOC: missingdata: Add example of a C-API function supporting NA masks | Mark Wiebe | 2011-08-27 | 1 | -1/+2 |
| | |||||
* | ENH: missingdata: Finish adding C-API access to the NpyNA object | Mark Wiebe | 2011-08-27 | 6 | -47/+66 |
| | |||||
* | ENH: missingdata: Expose Npy_NA as a global singleton, same as Py_None | Mark Wiebe | 2011-08-27 | 4 | -5/+6 |
| | |||||
* | ENH: missingdata: Rename na_singleton.[ch] to na_object.[ch] | Mark Wiebe | 2011-08-27 | 15 | -15/+16 |
| | |||||
* | BUG: missingdata: Add support for NA masks to the order='K' case of np.ravel | Mark Wiebe | 2011-08-27 | 2 | -33/+57 |
| | |||||
* | ENH: missingdata: Add maskna= and ownmaskna= parameters to np.asarray and ↵ | Mark Wiebe | 2011-08-27 | 6 | -38/+182 |
| | | | | | | | | friends Also fix some array() NA mask construction issues and make sure the base object doesn't collapse past the owner of the NA mask being viewed in addition to the data. | ||||
* | ENH: missingdata: Add maskna= flag to np.identity constructor | Mark Wiebe | 2011-08-27 | 2 | -4/+13 |
| | |||||
* | ENH: missingdata: Add maskna= flag to np.eye constructor | Mark Wiebe | 2011-08-27 | 3 | -11/+24 |
| | |||||
* | BUG: umath: Make the ufunc follow the actual priority for __r<op>__ | Mark Wiebe | 2011-08-27 | 1 | -18/+22 |
| | | | | | Previously it returned not implemented just based on the existence of the array priority, it didn't actually check the priority value. | ||||
* | ENH: core: Add static caching of the callables for C to core._method calls | Mark Wiebe | 2011-08-27 | 2 | -19/+147 |
| | |||||
* | ENH: missingdata: Add skipna=, keepdims= parameters to methods | Mark Wiebe | 2011-08-27 | 6 | -225/+146 |
| | | | | | | Also fix some memory leaks, improve some type resolution code. The methods still have some issues with array subtypes that needs working through. | ||||
* | ENH: missingdata: Add support for identity-less skipna reductions with ndim > 1 | Mark Wiebe | 2011-08-27 | 3 | -10/+310 |
| | |||||
* | ENH: missingdata: Future-proof AssignNA and AssignMaskNA for later multi-NA ↵ | Mark Wiebe | 2011-08-27 | 7 | -30/+39 |
| | | | | support | ||||
* | ENH: missingdata: Move ReduceMaskNAArray out of the public API | Mark Wiebe | 2011-08-27 | 4 | -17/+59 |
| | | | | | | Keep this function private, to keep flexibility open for longer. Also added what will likely be the necessary parameters for future where mask and multi-NA expansion. | ||||
* | ENH: missingdata: Add wheremask to PyArray_ContainsNA | Mark Wiebe | 2011-08-27 | 10 | -52/+243 |
| | | | | | | Use this to make masked assignment just check the elements its copying for NA, so that the source array can have NAs, just not where the mask says. | ||||
* | ENH: ufunc: Remove CreateReduceResult and InitializeReduceResult from the API | Mark Wiebe | 2011-08-27 | 3 | -139/+90 |
| | | | | | | Keep them internal longer, to let the details bake some more. PyArray_ReduceWrapper is in the API so both multiarray and umath can use it. | ||||
* | BUG: dtype: Mitigate crash bug for some kinds of dtype inputs | Mark Wiebe | 2011-08-27 | 3 | -5/+21 |
| | | | | | | | This doesn't fix it in general, but does for the specific case. The particular code in question is calling from C into Python to do parsing. I think this is a bad idea, and should be converted to straightforward C code instead. | ||||
* | ENH: missingdata: Make ndarray.view validate the maskna= parameter better | Mark Wiebe | 2011-08-27 | 2 | -4/+38 |
| | |||||
* | ENH: missingdata: Add maskna= parameter to np.copy and ndarray.copy | Mark Wiebe | 2011-08-27 | 8 | -156/+319 |
| | |||||
* | ENH: ufunc: Add a mask dtype parameter to the masked ufunc loop selector | Mark Wiebe | 2011-08-27 | 4 | -1/+15 |
| | | | | This is to allow for future expansion to multi-NA and struct-NA. | ||||
* | ENH: umath: Switch PyUFunc_Reduce to call PyArray_ReduceWrapper to simplify code | Mark Wiebe | 2011-08-27 | 10 | -621/+480 |
| | |||||
* | ENH: umath: Add checking for reorderable ufuncs, add PyArray_ReduceWrapper ↵ | Mark Wiebe | 2011-08-27 | 9 | -53/+261 |
| | | | | | | | | to API np.divide, for instance, isn't commutative, so the computation should not change the order of computation. The reduce function disables multiple-axis reductions on ufuncs which are not reorderable. | ||||
* | ENH: ufunc: Separate type resolution from loop selection | Mark Wiebe | 2011-08-27 | 6 | -745/+757 |
| | | | | | | | | | | | | | This change sets the stage for being able to produce much higher performance loops by specializing based on any fixed strides. To do this, type resolution must happen first to determine the dtypes, then the iterator needs to be created, then finally the loop needs to be selected for the given dtypes and the strides that will be fixed throughout the iteration. The way type resolution and loop selection where tied together before precluded this possibility, but with the backwards-compatible design change in this commit, such specializations will be possible in the future. | ||||
* | BUG: missingdata: Fix long double printing of NAs | Mark Wiebe | 2011-08-27 | 1 | -3/+3 |
| | |||||
* | BUG: missingdata: np.isna function wasn't accepting object arrays | Mark Wiebe | 2011-08-27 | 1 | -1/+7 |
| | |||||
* | ENH: missingdata: Improve error message when assigning NA to non-NA-masked ↵ | Mark Wiebe | 2011-08-27 | 3 | -4/+73 |
| | | | | arrays | ||||
* | BUG: repr: Make NA line up in the float array repr like inf and nan | Mark Wiebe | 2011-08-27 | 2 | -3/+3 |
| | |||||
* | ENH: missingdata: Change NA repr to use strings like the dtype repr does | Mark Wiebe | 2011-08-27 | 5 | -53/+77 |
| | |||||
* | ENH: missingdata: Add maskna= parameter to np.linspace and np.logspace | Mark Wiebe | 2011-08-27 | 2 | -7/+26 |
| | |||||
* | ENH: missingdata: Add the maskna= parameter to np.ones and np.ones_like | Mark Wiebe | 2011-08-27 | 10 | -87/+154 |
| | |||||
* | STY: core: Move some misc converters into conversion_utils.c to clean things up | Mark Wiebe | 2011-08-27 | 3 | -220/+220 |
| | |||||
* | BUG: ufunc: Missed a small update for the unitless reduction case | Mark Wiebe | 2011-08-27 | 2 | -3/+3 |
| | |||||
* | DOC: nditer: Improve the comment doc about the new NpyIter_IsFirstVisit function | Mark Wiebe | 2011-08-27 | 1 | -16/+8 |
| | |||||
* | BUG: ufunc: Fix bug in multi-dimensional reduction without a unit | Mark Wiebe | 2011-08-27 | 11 | -68/+383 |
| | |||||
* | BUG: fix crash in test_datetime_as_string | Han | 2011-08-27 | 1 | -1/+1 |
| | |||||
* | BLD: keep VC happy by moving inlined variable definitions to top | Han | 2011-08-27 | 2 | -15/+27 |
| | |||||
* | BLD: keep VC compiler happy by moving the threading macros after variable ↵ | Han | 2011-08-27 | 2 | -6/+12 |
| | | | | definition | ||||
* | BLD: missingdata: Fixes for Python 3 | Mark Wiebe | 2011-08-27 | 3 | -10/+14 |
| | |||||
* | TST: datetime: Change pytz warning message about skipping pytz tests | Mark Wiebe | 2011-08-27 | 1 | -1/+1 |
| | |||||
* | BLD: Failure in single file build mode because of a static function in two ↵ | Mark Wiebe | 2011-08-27 | 4 | -4/+9 |
| | | | | separate files | ||||
* | BUG: nditer: The nditer was reusing the reduce loop inappropriately (#1938) | Mark Wiebe | 2011-08-27 | 3 | -7/+29 |
| | |||||
* | BUG: Some bugs in squeeze and concatenate found by testing SciPy | Mark Wiebe | 2011-08-27 | 4 | -5/+21 |
| | |||||
* | TST: missingdata: Finish up NA mask tests for np.std and np.var | Mark Wiebe | 2011-08-27 | 1 | -0/+18 |
| | |||||
* | BUG: nditer: NA masks in arrays with leading 1 dimensions had an issue | Mark Wiebe | 2011-08-27 | 6 | -9/+25 |
| | |||||
* | ENH: missingdata: Implement tests for np.std, add skipna= and keepdims= ↵ | Mark Wiebe | 2011-08-27 | 4 | -38/+136 |
| | | | | parameters to more functions | ||||
* | ENH: missingdata: Implement skipna= support for np.std and np.var | Mark Wiebe | 2011-08-27 | 5 | -28/+183 |
| | |||||
* | ENH: missingdata: Support 'skipna=' parameter in np.mean | Mark Wiebe | 2011-08-27 | 8 | -50/+143 |
| | | | | | Also add 'keepdims=' parameter to reductions, to support writing of the np.std function. | ||||
* | ENH: missingdata: Create count_reduce_items function | Mark Wiebe | 2011-08-27 | 8 | -12/+338 |
| | | | | | | | This function either cheaply returns the product of the sizes of all the reduction axes, or counts the number of items which will be used in a reduction operation when skipna is True. Its purpose is to make it easy to do functions like np.mean and np.std. | ||||
* | ENH: missingdata: Move the Reduce boilerplate into a function ↵ | Mark Wiebe | 2011-08-27 | 3 | -211/+443 |
| | | | | PyArray_ReduceWrapper | ||||
* | ENH: missingdata: Finish count_nonzero as a full-fledged reduction operation | Mark Wiebe | 2011-08-27 | 8 | -46/+332 |
| |