summaryrefslogtreecommitdiff
path: root/doc
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* | | | ENH: Make swapaxes always return a viewjaimefrio2015-01-201-2/+7
|/ / / | | | | | | | | | | | | swapaxes now returns a view of the input array when the axes to swap are both the same, not the input array as it used to do. Fixes #5260
* | | ENH: Make rollaxis always return a view.Charles Harris2015-01-191-0/+6
| | | | | | | | | | | | | | | Previous to this commit, rollaxis returned a view unless the order of the axis was unchanged, in which case the input array was returned.
* | | DOC: some small fixes to the "Using Python as glue" section of the user guide.Ralf Gommers2015-01-172-98/+87
| | | | | | | | | | | | [ci skip]
* | | Merge pull request #5361 from JDWarner/arraypad_fixesCharles Harris2015-01-131-0/+6
|\ \ \ | |_|/ |/| | ENH: Improve arg handling & enhance test suite for `np.pad`
| * | ENH: Improve arg handling & enhance test suite for np.padJosh Warner (Mac)2015-01-061-0/+6
| | |
* | | Merge pull request #5332 from rnelsonchem/dev_docsCharles Harris2015-01-115-194/+173
|\ \ \ | | | | | | | | DOC: Reorganization request for Development Workflow docs
| * | | DOC: Update Development Workflow PageRyan Nelson2015-01-105-194/+173
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | The "Basic Workflow" section of the Development Workflow page was reorganized to make it clearer to new users and remove/update old material. Major changes: - Moved the core developer notes. Core dev notes are confusing in basic usage information. Updated a couple of the commands - Added more commands and reorgaized the "New Feature Branch" section. Took some text from "Rebasing" and moved it here, because it was redundant. - Made many changes to the "Editing Workflow" to clarify commands. Moved some git push stuff into this section as well. - Moved pull request section to just after editing workflow. Removed outdated images and simplified the text. Make code review requirements explicit. - Moved rebasing and troubleshooting sections to the end. Could add more here later. - Links renamed and broken link removed.