summaryrefslogtreecommitdiff
path: root/numpy
Commit message (Collapse)AuthorAgeFilesLines
* Add wording suggested by Eric. Remove extra example.Stefan van der Walt2019-10-151-35/+4
| | | | (The existing example already showcases the contracted axis stacking.)
* Axes shift description and example of np.tensordotYadong Zhang2018-10-101-0/+33
| | | Axes shift description and example of np.tensordot in its doc string
* BUG: Fix in-place permutationKevin Sheppard2018-10-102-2/+24
| | | | | | | Alter test to check if arrays are the same to avoid in-place of some array-like objects closes #11975
* Merge pull request #12112 from mattip/get_field-offset-checkCharles Harris2018-10-092-0/+33
|\ | | | | ENH: check getfield arguments to prevent invalid memory access
| * ENH: check getfield arguments to prevent invalid memory accessmattip2018-10-092-0/+33
| |
* | TST: expand cases in test_issctype()Tyler Reddy2018-10-091-0/+3
| | | | | | | | | | * add additional test cases for test_issctype requested by @eric-wieser in gh-12109
* | Merge pull request #11979 from hmaarrfk/block_single_array_copy_testMatti Picus2018-10-092-1/+20
|\ \ | | | | | | MAINT: Ensure that a copy of the array is returned when calling `block`.
| * | MAINT: Ensure that block returns a new arrayMark Harfouche2018-09-192-1/+20
| | | | | | | | | | | | | | | | | | | | | | | | In the case that a user calls np.block(array), the old block function would return a view into the array. This ensures that a new array is returned
* | | Merge pull request #12088 from jdemeyer/cpu_countCharles Harris2018-10-081-1/+4
|\ \ \ | | | | | | | | BUG: limit default for get_num_build_jobs() to 8
| * | | DOC: tweak grammarmattip2018-10-091-1/+1
| | | |
| * | | BUG: limit default for get_num_build_jobs() to 8Jeroen Demeyer2018-10-051-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | The default value for get_num_build_jobs() is now the number of CPUs limited to a maximum of 8. This is to prevent overloading systems with a lot of CPUs. See ticket #12087
* | | | Merge pull request #12109 from tylerjereddy/test_issctypeCharles Harris2018-10-081-0/+12
|\ \ \ \ | | | | | | | | | | TST: add unit test for issctype
| * | | | TST: add unit test for issctypeTyler Reddy2018-10-071-0/+12
| | |_|/ | |/| |
* | | | ENH: Validate dispatcher functions in array_function_dispatch (#12099)Stephan Hoyer2018-10-082-2/+68
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Validate dispatcher functions in array_function_dispatch They should have the same signature as the decorated function. Note: eventually these checks should be optional -- we really only need them to be run as part of NumPy's test suite, not every time numpy is imported. * ENH: make signature checking in array_function_dispatch optional * Change verify_signature keyword argument to verify
* | | | Merge pull request #12090 from pierreglaser/add-protocol-kwarg-to-array-dumpCharles Harris2018-10-085-54/+73
|\ \ \ \ | |/ / / |/| | | MNT Update pickling test by making them loop over all protocols
| * | | reverted to previous array_dump and array_dumps versionPierre Glaser2018-10-055-30/+14
| | | |
| * | | removed usage of np.ndarray.dump[s]Pierre Glaser2018-10-052-2/+2
| | | |
| * | | add the versionadded mention in the docsPierre Glaser2018-10-051-0/+4
| | | |
| * | | remove unwanted blank linePierre Glaser2018-10-051-1/+0
| | | |
| * | | loop over protocol for pickle testsPierre Glaser2018-10-055-54/+73
| | | |
| * | | updated documentation for array_dump[s]Pierre Glaser2018-10-051-3/+9
| | | |
| * | | added protocol kw to c implementations of array_dump[s]Pierre Glaser2018-10-051-8/+15
| |/ /
* | | Merge pull request #12106 from charris/fix-darwin-f2py-failuresCharles Harris2018-10-072-4/+15
|\ \ \ | | | | | | | | TST, MAINT: Skip some f2py tests on Mac.
| * | | TST, MAINT: Skip some f2py tests on Mac.Charles Harris2018-10-072-4/+15
| |/ / | | | | | | | | | | | | | | | There is a not yet understood problem in testing f2py C modules (*.pyf) files on the Mac that manifests as erratic module import failures.' This disables those tests until we can figure out what the problem is.
* | | Merge pull request #12093 from yarikoptic/enh-disclose-typeMatti Picus2018-10-071-1/+1
|\ \ \ | | | | | | | | ENH: Extend info in Invalid integer dtype error message
| * | | Provide information about what kind is actually not integer kindYaroslav Halchenko2018-10-051-1/+1
| |/ / | | | | | | | | | | | | | | | | | | | | | Otherwise it is hard to impossible to figure out what is the actual value which fails the test. See e.g. failing on 3.4 (only) tests of nibabel: https://ci.appveyor.com/project/nipy/nibabel/build/1.0.498/job/eechfm1kxroa0rju#L598
* | | TST: improve coverage of nd_gridTyler Reddy2018-10-061-0/+18
|/ /
* | MAINT: Blacklist some MSVC complex functions.Charles Harris2018-10-041-1/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Extend the blacklist to MSVC 2017 and add functions - CSQRT - CSQRTF - CSQRTL - CLOG - CLOGF - CLOGL - CACOS - CACOSF - CACOSL - CACOSH - CACOSHF - CACOSHL See comment from cgholke at issue #11855.
* | Merge pull request #11119 from eric-wieser/chain-PEP3118_exceptionMatti Picus2018-10-034-33/+49
|\ \ | | | | | | ENH: Chain exceptions to give better error messages for invalid PEP3118 format strings
| * | ENH: Chain exceptions to give better error messages for invalid PEP3118 ↵Eric Wieser2018-09-234-33/+49
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | format strings Sample console output: ``` In [1]: from ctypes import c_wchar In [2]: x = c_wchar * 3 In [3]: np.array(x()) --------------------------------------------------------------------------- ValueError Traceback (most recent call last) ~\Repos\numeric-python\numpy\build\testenv\Lib\site-packages\numpy\core\_internal.py in _dtype_from_pep3118(spec) 486 --> 487 dtype, align = __dtype_from_pep3118(stream, is_subdtype=False) 488 return dtype ~\Repos\numeric-python\numpy\build\testenv\Lib\site-packages\numpy\core\_internal.py in __dtype_from_pep3118(stream, is_subdtype) 558 else: --> 559 raise ValueError("Unknown PEP 3118 data type specifier %r" % stream.s) 560 ValueError: Unknown PEP 3118 data type specifier 'u' The above exception was the direct cause of the following exception: ValueError Traceback (most recent call last) <ipython-input-3-f8a17df3aa24> in <module>() ----> 1 np.array(x()) ValueError: '<u' is not a valid PEP 3118 buffer format string ```
* | | BUG: test_path() now uses Path.resolve()Tyler Reddy2018-10-021-1/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * test_path() in test_memmap.py no longer uses os.path.realpath() because of failure to resolve symlinks on Windows--a CPython bug that is still open * this was discovered in testing on the Azure CI platform, where a symlink was resolved by memmap in NumPy using Path.resolve(), while the unit test verifying this behavior used os.path.realpath()
* | | Merge pull request #11991 from hmaarrfk/block_optimize_orderMatti Picus2018-10-011-18/+15
|\ \ \ | | | | | | | | MAINT: speed up _block by avoiding a recursive closure
| * | | MAINT: speed up _block by avoiding a recursive closureMark Harfouche2018-09-201-18/+15
| | | |
* | | | BUG: OBJECT_to_* should check for errorsAllan Haldane2018-09-302-2/+11
| | | | | | | | | | | | | | | | Fixes #11993
* | | | Merge pull request #12061 from ceh-forks/remove-reduntant-importsCharles Harris2018-09-303-4/+0
|\ \ \ \ | | | | | | | | | | MAINT: remove redundant imports
| * | | | MAINT: remove redundant importsEmil Hessman2018-09-303-4/+0
| | | | |
* | | | | Merge pull request #12060 from ceh-forks/remove-more-unused-importsCharles Harris2018-09-3014-24/+4
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove unused stdlib imports
| * | | | | MAINT: remove unused stdlib importsEmil Hessman2018-09-3014-24/+4
| |/ / / /
* | | | | Merge pull request #12058 from ceh-forks/remove-redundant-assignmentCharles Harris2018-09-301-1/+0
|\ \ \ \ \ | | | | | | | | | | | | MAINT: remove redundant assignment
| * | | | | MAINT: remove redundant assignmentEmil Hessman2018-09-301-1/+0
| |/ / / /
* | | | | Merge pull request #6377 from ahaldane/fix_alignCharles Harris2018-09-3019-141/+250
|\ \ \ \ \ | |/ / / / |/| | | | BUG: define "uint-alignment", fixes complex64 alignment
| * | | | MAINT: remove unneeded test in npy_is_alignedAllan Haldane2018-09-271-8/+5
| | | | |
| * | | | DOC: Document how memory alignment works as of 1.14Allan Haldane2018-09-271-0/+1
| | | | |
| * | | | TST: Test complex64 alignmentAllan Haldane2018-09-272-1/+76
| | | | |
| * | | | ENH: Fix complex64 alignmentAllan Haldane2018-09-272-25/+4
| | | | |
| * | | | ENH: Make copy-code-paths check for uint-alignmentAllan Haldane2018-09-278-36/+38
| | | | |
| * | | | ENH: Implement methods for uint-alignmentAllan Haldane2018-09-277-62/+78
| | | | | | | | | | | | | | | | | | | | Implements IsAligned, IsUintAligned, npy_uint_alignment
| * | | | BUG: raw_array_is_aligned ignores NPY_RELAXED_STRIDES_CHECKINGAllan Haldane2018-09-274-14/+45
| | | | |
| * | | | BUG: _strided_masked_wrapper_transfer_function goes out of boundsAllan Haldane2018-09-271-0/+8
| | | | |
* | | | | Merge pull request #11962 from mfkasim91/limitrowloadtxtCharles Harris2018-09-302-2/+58
|\ \ \ \ \ | | | | | | | | | | | | ENH: maximum lines of content to be read from numpy.loadtxt