Add note to scipy.optimize.brute_force about the datatype of the evalution.
ENH: add the limit shape c=0 to genpareto distribution

For c=0, genpareto is equivalent to the exponential
distribution.
BUG: use special.log1p instead of np.log1p

np.log1p(np.inf) is reported to produce nans on some platforms,
see numpy issue gh-4225
BUG: use scipy.special.expm1 instead of np.expm1
ENH: vectorize genpareto._munp

implementation is by @pbrod
BUG: special-case genpareto(c=-1)
ENH/BUG: support negative m in elliptic integrals

Prior, ellipkinc, and ellipeinc silently returned garbage for
negative m.  Both functions are still inaccurate due at extremely
large phi.
BUG: ellipkinc(p, 1) imprecise.

The old expression was imprecise for small phi and for phi very
close to pi/2.
TST: special: enable some mpmath test for incomplete elliptic integrals E and K
TST: enable ellipkinc tests against boost data
TST: Add tables driven tests of ellip(k,e)inc values with neg m
ENH: fix failing argument reduction for large phi. (ellip(e,k)inc)

The floating point multiples of pi/2 won't fit into an int.
Argument reduce into a double instead.
ENH: Improve precision of ellipeinc for small p, m in [0,1].
DOC: Improve docstrings for elliptic integrals.
BUG: io.netcdf: do not close mmap if there are references left to it

Fixes gh-3630
DOC: io: update netcdf docs vs mmap
BUG: sparse.linalg: make *Inv objects in arpack garbage-collectable by refcount

Setting self._method = self._method by passing self._method to
LinearOperator causes a reference cycle in the various inverse
operators. self._method = Class._method works.

The reference cycle prevents these objects from being GC'd immediately
by refcount.  Since these objects hold large amounts of data, it's easy
to run out of memory before cyclic GC runs, if eigs/eigsh is called in a
tight loop, so it's best to not create refcycles here.
DOC: io/netcdf: add example on mmap features, adjust doc

[ci skip]
TST: io/netcdf: remove invalid test

The "Too many open files" warning is actually unavoidable, since the
arrays refer directly to data in memory mapped files, and those files
cannot be closed as long as the arrays are around.
TST: io/netcdf: fix issues with warnings in tests

Ignore warning emitted in test_itemset_no_segfault_on_readonly.  Remove
a test using assert_warns; it doesn't clear warning registry, so the
warning in the other test makes this one not fire.