summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #5791 from charris/indexing-explanations-cleanupCharles Harris2015-04-291-151/+98
|\ | | | | Indexing explanations cleanup
| * MAINT: Spelling and style fixes to internals.code-explanations.rst.Charles Harris2015-04-281-63/+65
| | | | | | | | | | | | | | | | Basic cleanup of the new indexing documentation. Also replace "subspace" by "subarray" and try to clarify mixed advanced and view indexing. [skip ci]
| * DOC: Update indexing implementation explanations.Sebastian Berg2015-04-231-129/+74
| |
* | Merge pull request #5597 from zerothi/ENH-distutilsCharles Harris2015-04-241-0/+17
|\ \ | |/ |/| BLD, ENH: Reading of extra flags from site.cfg to extend flexibility
| * ENH: rpath and runtime_library_dirs equivalentNick Papior Andersen2015-02-261-1/+1
| | | | | | | | | | | | | | | | | | The original distutils assumes runtime_library_dirs to be located in rpath, however, the internal structures assumes the keyword to be runtime_library_dirs. For now numpy.distutils handles both equivalently. The test has been updated to also test the rpath solution.
| * BUG: PEP corrections and streamlined with numpy dev lineNick Papior Andersen2015-02-251-5/+7
| | | | | | | | | | | | | | | | | | Changed self.assert* to assert_ instances through numpys own testing utilities. Fixes for the rst document. Removed unnecessary import statements in the test.
| * ENH: Added tests to the extra options read inNick Papior Andersen2015-02-241-0/+15
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A simple test (distutils/testing/test_system_info.py) to check that the options are read in correctly has been added. This test has a few faults: A) It does not allow strict library checks as that can be _very_ system dependent. B) It compiles some simple C-programs but does currently not link them to a shared library. C) As such the test does not check that the flags are actually used. To circumvent this one should: A) Make a library of the compiled sources. B) Check that a runtime_library_dirs is working by checking with ldd C) Make a preprocessor flag to check the output of two commands which should differ according to the flags in each block I am not too much into the distutils compiler suite. So I have not endeavoured on this path. - The current test shows that the flags are read in by the standard system_info object and can thus be considered a "stable" solution. - Added note of the 1.10 release schedule. - Corrected the site.cfg.example, added runtime_library_dirs to the OpenBLAS example where it seems appropriate. - Bugfix for the site.cfg.example (the [DEFAULT] block should be name [ALL]) This might have lead to some confusion, but many of the libraries are linked explicitly by their own sections, hence it might not have been caught.
* | ENH: cache dtype.__hash__Antoine Pitrou2015-04-041-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Computing the type of a dhash can be slow for complex (e.g. structured) dtypes. Hashing dtypes can be useful in some applications, such as when doing type-based dispatching, and speed can be critical in those cases. This enhancement caches the once-computed hash value in the dtype structure, so as to save time on further lookups. The cached value is invalidated in the rare cases where the dtype is mutated. Benchmarks numbers: python3.4 -m timeit -s "import numpy as np; t=np.dtype('uint64')" "hash(t)" * before patch: 1000000 loops, best of 3: 0.498 usec per loop * after patch: 10000000 loops, best of 3: 0.0616 usec per loop python3.4 -m timeit -s "import numpy as np; t=np.dtype([(s, 'f') for s in 'abcdefghij'])" "hash(t)" * before patch: 100000 loops, best of 3: 4.43 usec per loop * after patch: 10000000 loops, best of 3: 0.0603 usec per loop Closes #5339.
* | ENH sync ndarray methods doc/args with numpy function doc/argsAllan Haldane2015-04-021-0/+6
| | | | | | | | | | | | | | | | | | | | Modified the docstrings to all, any, sum, prod, mean, var, std, min, max to add keepdims argument. Added 'out' keyword parameter to numpy.argmin, numpy.argmax, to mirror ndarray methods. Updated ndarray.clip docstring to give correct parameter description.
* | Merge pull request #5683 from matthew-brett/deprecate-bias-ddofCharles Harris2015-03-201-0/+15
|\ \ | | | | | | BUG: deprecation for ignored corrcoef args
| * | ENH: deprecate bias and ddof arguments to corrcoefMatthew Brett2015-03-151-0/+15
| | | | | | | | | | | | | | | | | | | | | The bias and ddof arguments had no effect on the calculation of the correlation coefficient because the value cancels in the calculation. Deprecate these arguments to np.corrcoef and np.ma.corrcoef.
* | | DOC: add array2string to reference guide and explain relation to array_repr/strRalf Gommers2015-03-181-0/+1
|/ / | | | | | | | | | | Closes gh-5684. [ci skip]
* | Merge pull request #5682 from matthew-brett/add-clear-catch-warnings-cmCharles Harris2015-03-141-0/+12
|\ \ | | | | | | MRG: new clear_catch_warnings context manager
| * | DOC: `clear_and_catch_warnings` release noteMatthew Brett2015-03-141-0/+12
| | | | | | | | | | | | Add release note on `clear_and_catch_warnings`.
* | | DOC: 'signature' preferred over 'sig' as ufunc keyword argumentJaime Fernandez2015-03-121-3/+6
| | |
* | | ENH: Strict checking of ufunc keyword argument namesJaime Fernandez2015-03-091-1/+1
|/ / | | | | | | | | | | | | Raises a TypeError if any of the keyword arguments supplied to a ufunc does not exactly match the name in the signature. Prior to this, trailing characters were discarded, e.g. 'out2' would be treated as if it where 'out'.
* | DOC: adjust wording of random data noteendolith2015-03-091-6/+6
| |
* | Add note about random seedsendolith2015-03-081-0/+10
| |
* | DOC: update release notes vs np.load, np.save pickle kwargsPauli Virtanen2015-03-081-0/+8
| |
* | Merge pull request #5621 from jaimefrio/ufunc_out_tupleCharles Harris2015-03-082-1/+23
|\ \ | | | | | | ENH: ufuncs can take a tuple of arrays as 'out' kwarg
| * | ENH: ufuncs can take a tuple of arrays as 'out' kwargJaime Fernandez2015-03-082-1/+23
| | | | | | | | | | | | Closes #4752
* | | Merge pull request #5627 from gertingold/slogdetCharles Harris2015-03-071-0/+2
|\ \ \ | | | | | | | | DOC: added version information for slogdet
| * | | DOC: Give version when various linalg functions accepted stacked arrays.Gert-Ludwig Ingold2015-03-071-0/+2
| |/ / | | | | | | | | | | | | | | | Version information added in the Notes section of the functions accepting stacked arrays and in the discussion of this feature in the linalg overview.
* | | BUG: genfromtxt gave OverflorError for large integersThomas Robitaille2015-03-061-0/+6
|/ / | | | | | | | | | | | | | | | | Fix StringConverter to avoid OverflowError in genfromtxt. Before, int(2**66) would work (and return a ‘long’) but then np.array([2**66], dtype=np.integer) would not work and return an OverflowError which would propagate to genfromtxt. This commit fixes this by ensuring testing in advance whether an OverflowError will occur. In addition, this adds an explicit np.int64 entry on systems where integer means int32. Values larger than 2**63-1 will be cast as float. This includes a regression test and adds an entry to the release notes.
* | ENH: add broadcast_to functionStephan Hoyer2015-02-262-0/+7
|/ | | | | | | | Per the mailing list discussion [1], I have implemented a new function `broadcast_to` that broadcasts an array to a given shape according to numpy's broadcasting rules. [1] http://mail.scipy.org/pipermail/numpy-discussion/2014-December/071796.html
* DOC: Update release notes on allclose/isclose changes.chebee7i2015-02-211-0/+12
|
* Merge pull request #5440 from chebee7i/yieldssectionCharles Harris2015-02-141-20/+57
|\ | | | | DOC: Add documentation for Yields section in docstrings.
| * DOC: Mention numpydoc 0.6.chebee7i2015-02-141-2/+10
| |
| * DOC: Replace "Parameters" with "Returns".chebee7i2015-02-141-1/+1
| |
| * DOC: Clarify documentation for Yields.chebee7i2015-01-111-4/+3
| |
| * DOC: Add documentation for Yields section in docstrings.chebee7i2015-01-111-19/+49
| |
* | DOC: Document loadtxt support for float.hex float representation.Charles Harris2015-02-131-0/+5
| |
* | Merge pull request #5518 from charris/simple-gh-3010Charles Harris2015-02-131-0/+13
|\ \ | | | | | | BUG: Simplified fix, Overflow in tan and tanh for large complex values.
| * | DOC: Document changes in npymath library.Charles Harris2015-02-131-0/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Document the increased use of the system library for C99 complex functions and the addition of improved fallback functions for * npy_ctan, * npy_cacos, npy_casin, npy_catan * npy_ccosh, npy_csinh, npy_ctanh, * npy_cacosh, npy_casinh, npy_catanh
* | | Merge pull request #5536 from stefaneng/patch-1Charles Harris2015-02-081-2/+2
|\ \ \ | | | | | | | | genfromtxt example in user docs missing delimiter
| * | | genfromtxt example in user docs missing delimiterStefan Eng2015-02-051-2/+2
| | | | | | | | | | | | The example given in the user docs does not run correctly without adding `delimiter=","`. This add the missing keyword to allow the examples to be run.
* | | | SWIG testing: clarify location and number of testsSandro Tosi2015-02-081-2/+2
|/ / / | | | | | | | | | | | | | | | | | | SWIG interface has moved to tools/ directory, so updating the doc to state that and also the number of tests is reduced since what reported, so a generic "more than" is used (to avoid similar situations in the future) but likely also the other numbers should be checked.
* | | Correct my email addressBlake Griffith2015-02-021-1/+1
| | |
* | | DOC: Update PyArray_ArrFuncs documentationjaimefrio2015-01-291-17/+53
| | |
* | | DOC: Update docs for PyArray_FromInterface/PyArray_FromStructInterfacejaimefrio2015-01-281-7/+5
|/ /
* | Merge pull request #5505 from ahaldane/recarray_returntypeCharles Harris2015-01-261-0/+9
|\ \ | | | | | | BUG: Fix recarray getattr and getindex return types
| * | BUG: Fix recarray getattr and getindex return typesAllan Haldane2015-01-261-0/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit makes changes to `__getitem__` and `__getattr__` of recarrays: 1. recarrays no longer convert string ndarrays to chararrays, and instead simply return ndarrays of string type. 2. attribute access and index access of fields now behaves identically 3. dtype.type is now inherited when fields of structured type are accessed Demonstration: >>> rec = np.rec.array([('abc ', (1,1), 1), ('abc', (2,3), 1)], ... dtype=[('foo', 'S4'), ('bar', [('A', int), ('B', int)]), ('baz', int)]) Old Behavior: >>> type(rec.foo), type(rec['foo']) (numpy.core.defchararray.chararray, numpy.recarray) >>> type(rec.bar), type(rec['bar']), rec.bar.dtype.type (numpy.recarray, numpy.recarray, numpy.void) >>> type(rec.baz), type(rec['baz']) (numpy.ndarray, numpy.ndarray) New behavior: >>> type(rec.foo), type(rec['foo']) (numpy.ndarray, numpy.ndarray) >>> type(rec.bar), type(rec['bar']), rec.bar.dtype.type (numpy.recarray, numpy.recarray, numpy.record) >>> type(rec.baz), type(rec['baz']) (numpy.ndarray, numpy.ndarray)
* | | Merge pull request #5249 from immerrr/add-missing-scalar-func-docsCharles Harris2015-01-261-3/+18
|\ \ \ | |/ / |/| | DOC: add documentation for some scalar checks
| * | DOC: add documentation for some scalar checksimmerrr2014-11-291-3/+18
| | | | | | | | | | | | DOC: Mention that PyArray_Return steals a reference to arr
* | | Merge pull request #5473 from rgommers/doc-inplace-buildCharles Harris2015-01-254-47/+272
|\ \ \ | | | | | | | | DOC: update build instructions, add developer docs
| * | | DOC: developer guide: add section on rebuild/clean, expand section on gdb.Ralf Gommers2015-01-241-13/+72
| | | | | | | | | | | | | | | | | | | | | | | | Addresses review comments on gh-5473. [ci skip]
| * | | DOC: add "build and test" section to developer guide. Closes gh-5465.Ralf Gommers2015-01-204-1/+161
| | | | | | | | | | | | | | | | [ci skip]
| * | | DOC: update "build and install" page in user guide.Ralf Gommers2015-01-201-46/+52
| | | | | | | | | | | | | | | | | | | | - add section on basic and parallel builds - update links and remove outdated info
* | | | DOC: Document new genfromtxt max_rows argument in release notes.Charles Harris2015-01-241-1/+8
| | | |
* | | | DOC: improve record/structured array nomenclature & guideAllan Haldane2015-01-229-52/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This update adds a section better describing record arrays in the user guide (numpy/doc/structured_arrays.py). It also corrects nomenclature, such that "structured array" refers to ndarrays with structured dtype, "record array" refers to modified ndarrays as created by np.rec.array, and "recarray" refers to ndarrays viewed as np.recarray. See the note at the end of the structured array user guide.