ENH: optimize: curve_fit now warns if pcov is undetermined

Marked the test as a knownfailure for now. The test fails because
assert_warns in numpy.testing should clean __warningregistry__...
FIX: re-enable test for indertemitate covariance warning

Fixed the bogus waring in test_array_like and thus now we can
re-enable the test for the issuing of OptimizeWarning from curve_fit
when the covariance matrix is indeterminate. This works as long as in
the future new tests don't trigger the warning somewhere else in scipy
test suite ;)
DOC: sparse.linalg: typo
ENH: sparse.linalg: take LinearOperator in svds

Should allow solving PCA for sparse matrix.
DOC: advertise svds(LinearOperator) + vanity
BUG: Match exception declarations between scipy/io/matlab/streams.pyx and
scipy/io/matlab/streams.pxd to prevent an error in recent versions of
cython.
BUG: fitpack: avoid a memory error in splev(x, tck, der=k)

for x < t[0], splev(..., der=k) produces garbage or crashes
because of a memory error.

Fixes gh-2188
DOC: Add rq to __init__, correct rq docstring.

This function works fine on rectangular and complex matrices.  No
ideal why the docstring didn't reflect that.
Deprecate nanmean, nanstd, nanmedian in favour of the numpy equivalents

See #1727
TST: stats: filter out DeprecationWarnings in TestNanFunc
Latest changes from standalone idlsave:

- Properly handle null data
- Added support for description records
PEP8: fix line too long
ENH: mention OptimizeWarning in curve_fit docstring
BUG: Raise exceptions when an invalid file position is returned.
BUG: fix ndimage functions for large data

map_coordinates uses int to index into data arrays which can overflow
for arrays of several gigabytes size. Patch by @cgohlke.
some other occurances of int replaced by npy_intp for safety.
Closes gh-3733
Fix documentation error for nc chi-squared dist

Fix documentation error for the PDF of the non-central chi-squared continuous
distribution, which was described wrong but implemented correctly. Also do some
minor style fixes (remove spaces at line end).
Merge remote-tracking branch 'upstream/master' into chi2-documentation-fix
Fix _nd_image.geometric_transform endianness bug

* Add _geometric_transform python wrapper to do byteswapping if 'output'
  dtype does not have a native endianness
* Add a few tests with 'ouput' parameter + native and non-native
endianness dtype
MAINT: remove use of deprecated numpy API in lib/lapack/ f2py wrapper.

Fixes a compile error with numpy 1.10-dev due to numpy PR 5270.
Closes gh-4151.
MAINT: optimize: remove dead code

ndim of arrays that were previously flattened were being checked.
(The check and flatten could be swapped, but that would change current
behavior.)