BUG: incorrect argument order to _copyto in in np.nanmax, np.nanmin
* gh-4618: DEP: Deprecate numpy.rank
This function is commonly confused with numpy.linalg.matrix_rank and exists itself only for history reasons. Closes gh-4616
ENH: add a basic type fastpath to PyArray_CanCastTypeTo
improves small array performance by 5%-10%
BLD: remove "-Wl,-framework,Python" from linker flags for Intel compiler...
Doc update: NEPs, f2py examples and refguide section fix.
Add a link to f2py docs, which was missing. [ci skip]
Fixed typo in the docstrings of np.all() and np.any()
… html. Also fix example in testing that Sphinx saw as section header.
Also fix a duplicate entry for numpy.testing due to incorrect header underlining.
…ler. The "-Wl,-undefined,dynamic_lookup" flag is enough to make things work with OS X bundles. On the mailing list an issue was reported with Anaconda (non-framework build) where f2py was picking up the system framework Python instead of the Anaconda one. Thanks to Robert Kern for explaining how to fix this.
update arrays.indexing.rst for 'newaxis' description
Revert line from #4585 to get mask, data shapes to match in .flat
BUG: Fix lack of NULL check in array_richcompare.
fixed bad signature in docstring for uniform()
The lack of this check led to a segfault. Closes #4613.
BUG: Ensure MaskedArray.flat can access single items
ENH: adding ppc64le architecture support
ENH: add a 'return_counts=' keyword argument to `np.unique`
BLD: remove cython c source from git
BUG: ifort has issues with optimization flag /O2
Fixes scipy test failures.
This PR adds a new keyword argument to `np.unique` that returns the number of times each unique item comes up in the array. This allows replacing a typical numpy construct: unq, _ = np.unique(a, return_inverse=True) unq_counts = np.bincount(_) with a single line of code: unq, unq_counts = np.unique(a, return_counts=True) As a plus, it runs faster, because it does not need the extra operations required to produce `unique_inverse`.
BUG: Prevent division by zero. Closes #650.