summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | ENH: Einsum calls BLAS if it advantageous to do so (#9425)Daniel Smith2017-07-183-43/+177
| |/ / |/| | | | | | | | | | | | | | | | | | | | | | | | | | * Einsum now optionally uses BLAS * The einsum call is now optimized by default * cleans up the dot logic * MAINT: Correct spelling, tranpose <- transpose.
* | | MAINT: Replace tab escapes with four spacesEric Wieser2017-07-121-500/+500
| | | | | | | | | | | | | | | Using \t here is just cryptic. Done using a very basic find and replace.
* | | Merge pull request #9020 from eric-wieser/reduce-warnCharles Harris2017-07-1110-321/+400
|\ \ \ | |/ / |/| | BUG: don't silence warnings in ufunc.reduce
| * | MAINT: Remove unused variableEric Wieser2017-06-021-1/+0
| | |
| * | BUG: Check for warnings in ufunc.reduceEric Wieser2017-06-026-9/+46
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The two most visible consequences are warnings for: * np.min and np.max when inputs contain nan * np.sum when the summation (of floats) overflows Implementation taken from the code for ufunc.__call__ Fixes #8954
| * | MAINT: Do not produce warnings in fmin/fmax functionsEric Wieser2017-06-021-0/+3
| | | | | | | | | | | | Previously, these would do so when encountering nans
| * | MAINT: Move functions handling ufunc extobjEric Wieser2017-06-024-312/+351
| | | | | | | | | | | | | | | | | | This makes it visible inside other files, like reduction.c Apart from the includes, everything here is just a direct move - there are no code changes
* | | Merge pull request #9388 from jaimefrio/not_not_swappedEric Wieser2017-07-093-20/+24
|\ \ \ | |_|/ |/| | MAINT: Use PyArray_ISBYTESWAPPED instead of !PyArray_ISNOTSWAPPED.
| * | MAINT: Use PyArray_ISBYTESWAPPED instead of !PyArray_ISNOTSWAPPED.Jaime Fernandez2017-07-093-20/+24
| | | | | | | | | | | | Positives are easier to parse than double negatives.
* | | MAINT: Simplify code using PyArray_ISBYTESWAPPED macro.Jaime Fernandez2017-07-081-2/+2
|/ /
* | TST: test doc string of COMMON block arrays for numpy.f2py.Bob Eldering2017-07-071-0/+23
| |
* | Merge pull request #9362 from charris/rearrange-testing-moduleCharles Harris2017-07-0636-3404/+3968
|\ \ | | | | | | ENH: Rearrange testing module to isolate nose dependency.
| * | TST: Add test of new `parametrize` decorator.Charles Harris2017-07-051-0/+14
| | | | | | | | | | | | | | | The new decorator was added to numpy.testing in order to facilitate the transition to using pytest.
| * | ENH: Add parametrize decorator for nose.Charles Harris2017-07-052-0/+506
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | One of the steps in achieving pytest compatibility is to get rid of yield based nose tests. Having some basic version of parametrize offers a way to do that. Note that the version here is very restricted and does not have all the capabilities of the pytest version. Such are the drawbacks of backward compatibility.
| * | MAINT: Rearrange files in numpy/testing module.Charles Harris2017-07-0434-3404/+3448
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The aim here is to separate out the nose dependent files prior to adding pytest support. This could be done by adding new files to the general numpy/testing directory, but I felt that it was to have the relevant files separated out as it makes it easier to completely remove nose dependencies when needed. Many places were accessing submodules in numpy/testing directly, and in some cases incorrectly. That presented a backwards compatibility problem. The solution adapted here is to have "dummy" files whose contents will depend on whether of not pytest is active. That way the module looks the same as before from the outside. In the case of numpy itself, direct accesses have been fixed. Having proper `__all__` lists in the submodules helped in that.
* | | Merge pull request #9364 from ↵Charles Harris2017-07-061-2/+1
|\ \ \ | | | | | | | | | | | | | | | | bobeldering/f2py-closing-brace-in-format_def-docstring BUG: ')' is printed at the end pointer of the buffer in numpy.f2py.
| * | | BUG: ')' is printed at the end pointer of the buffer in numpy.f2py.Bob Eldering2017-07-051-2/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | When building the __doc__ string for Fortran objects, the ')' character, closing the dimensions list, is written 1 position beyond the allowed buffer size, instead of the current pointer in the buffer.
* | | | BUG: Fix error in fromstring function from numpy.core.records (#9369)Daniel Hrisca2017-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | BUG: fix error in fromstring function from numpy.core.records the shape was computer using true division and ndarray expects a tuple of integers as shape parameter
* | | | Merge pull request #9354 from eric-wieser/fix-type-resolver-hangCharles Harris2017-07-052-12/+15
|\ \ \ \ | | | | | | | | | | BUG: Prevent hang traversing ufunc userloop linked list
| * | | | MAINT: Use a for loop to traverse the linked listEric Wieser2017-07-031-4/+3
| | | | | | | | | | | | | | | | | | | | This avoids bugs like gh-9351 being introduced later
| * | | | BUG: Prevent hangs traversing ufunc userloop linked listsEric Wieser2017-07-032-8/+12
| | | | | | | | | | | | | | | | | | | | Fixes gh-9351
* | | | | DOC: Add examples for complex dtypesEric Wieser2017-07-031-13/+16
| |/ / / |/| | | | | | | | | | | | | | | | | | | Also remove redundancy between the function and return value descriptions [ci skip]
* | | | Merge pull request #9343 from eric-wieser/recfunction-join-dtypeAllan Haldane2017-07-012-65/+189
|\ \ \ \ | | | | | | | | | | BUG: recfunctions fail in a bunch of ways due to using .descr
| * | | | MAINT: Avoid one more use of descrEric Wieser2017-07-011-11/+6
| | | | |
| * | | | MAINT: remove tuple<->list conversion danceEric Wieser2017-07-011-30/+31
| | | | |
| * | | | TST: join_by now works for dtypes with padding tooEric Wieser2017-07-011-0/+16
| | | | | | | | | | | | | | | | | | | | Once again, thanks to not using .descr
| * | | | MAINT: Shortcut for flat dtypes wasn't used for scalar dtypesEric Wieser2017-07-011-3/+3
| | | | |
| * | | | BUG: flatten_descr returns string not dtype for scalar dtypeEric Wieser2017-07-011-1/+1
| | | | |
| * | | | MAINT: Stop using .descr in recfunctionsEric Wieser2017-07-011-18/+22
| | | | | | | | | | | | | | | | | | | | This change shouldn't affect behaviour - all old uses were still correct.
| * | | | TST: Add failing test for mismatch of key typeEric Wieser2017-07-011-1/+16
| | | | |
| * | | | BUG: stack_arrays fails for subdtypesEric Wieser2017-07-012-5/+34
| | | | | | | | | | | | | | | | | | | | Again, fixed by not using descr
| * | | | BUG: recfunctions.join_by fails when key is a subdtypeEric Wieser2017-07-012-11/+61
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | It seems that working with .descr is a generally terrible idea. Instead we introduce `get_fieldspec`, which returns a list of 2-tuples, encapsulating subdtypes. This also means that np.core.test_rational.rational survives a roundtrip - its .descr is 'V8', which ddoesn't survive
| * | | | BUG: recfunctions.join_by fails for colliding values with different dtypesEric Wieser2017-07-012-11/+25
| | | | | | | | | | | | | | | | | | | | Fixes #9338
| * | | | MAINT: use set operators for brevityEric Wieser2017-07-011-3/+3
| | | | |
* | | | | Merge pull request #9346 from eric-wieser/masked-fillvalue-voidAllan Haldane2017-07-012-1/+6
|\ \ \ \ \ | | | | | | | | | | | | BUG: void masked fillvalue cannot be cast to void in python 3
| * | | | | BUG: void masked fillvalue cannot be cast to void in python 3Eric Wieser2017-07-012-1/+6
| |/ / / /
* | | | | DOC: Improve documentation of common_type (#9344)Gunjan2017-07-011-2/+2
| | | | | | | | | | | | | | | Fixes gh-9326
* | | | | Merge pull request #9320 from WarrenWeckesser/heaviside-docstringCharles Harris2017-07-011-9/+8
|\ \ \ \ \ | |_|_|/ / |/| | | | DOC: Use x1 and x2 in the heaviside docstring.
| * | | | DOC: Use x1 and x2 in the heaviside docstring.Warren Weckesser2017-06-271-9/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Also remove a duplicate $PARAMS. Closes gh-9314.
* | | | | Merge pull request #9341 from eric-wieser/resize-emptyCharles Harris2017-07-012-7/+11
|\ \ \ \ \ | | | | | | | | | | | | BUG: np.resize discards empty shapes
| * | | | | BUG: np.resize discards empty shapesEric Wieser2017-07-012-7/+11
| | |/ / / | |/| | |
* | | | | Merge pull request #9337 from jleahy/masterCharles Harris2017-06-303-2/+14
|\ \ \ \ \ | | | | | | | | | | | | BUG: Prevent crash if ufunc doc string is null
| * | | | | BUG: prevent crash when ufunc doc string is nullJoshua Leahy2017-06-303-2/+14
| | | | | |
* | | | | | BUG: umath: un-break ufunc where= when no out= is givenPauli Virtanen2017-06-302-10/+36
| |/ / / / |/| | | | | | | | | | | | | | | | | | | Calling ufuncs with where= specified but without out= was broken. Un-break it and add some test coverage.
* | | | | Merge pull request #9322 from eric-wieser/ma-astypeahaldane2017-06-272-7/+12
|\ \ \ \ \ | | | | | | | | | | | | BUG: np.ma.astype fails on structured types
| * | | | | BUG: MaskedArray.astype fails for non-trivial structured typesEric Wieser2017-06-272-7/+12
| | | | | |
* | | | | | Merge pull request #9302 from eric-wieser/fix-fillvalueahaldane2017-06-273-108/+127
|\ \ \ \ \ \ | | | | | | | | | | | | | | BUG: Fix fillvalue
| * | | | | | TST: Verify that join_by doesn't choke on subdtypesEric Wieser2017-06-271-0/+10
| | | | | | |
| * | | | | | BUG: Overhaul *_fill_value functionsEric Wieser2017-06-272-82/+75
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These now: * Return void scalars instead of tuples for structured dtypes * Actually accept non-trivial dtype arguments * Work for nested structured and subarray dtypes * Uniformly convert scalar types into dtypes Also fixes #9315
| * | | | | | MAINT: Remove cycle between _check_fill_value and default_fill_valueEric Wieser2017-06-271-21/+17
| | | | | | |