Merge pull request #3483 from HaroldMills/bugfix-binomial

BUG: numpy.random.binomial raised ValueError for n == 0
Merge pull request #3461 from charris/fix-load-resource-warning

BUG: Make np.load transfer file ownership to the returned NpzFile.
Rename filled, filled_like to full, full_like
Merge pull request #2875 from ahojnnes/array-init

Add convenience functions nans, infs, nans_like, infs_like
Corrected typos in documentation for PyArray_GETPTR1.
Merge pull request #3489 from dmuellner/master

Fix: Documentation bug for PyArray_GETPTR1
BUG: Fix failure to return monic polynomials from roots.

This bug affected the various polynomial class methods fromroots due to
the ability to specify both window and domain. In that circumstance the
roots are mapped from the domain to the window by the substitution
`x = off + scl*x`. The polynomial that was being generated was monic in
the window before substitution, but if scl was not one it was not monic
considered as a function of the variable x in the domain. The fix is to
divide the generated coefficients by `scl ** deg` so that the scaling of
the highest degree term after substitution is canceled.

It might be better to make the scaling optional in the future, but this
fix makes the result match the documentation.

Closes #3467.
Merge pull request #3495 from charris/make-fromroots-return-monic

BUG: Fix failure to return monic polynomials from roots.
BUG: Fix exceptions being swallowed by fromiter.

All exceptions from underlying iterator were being collapsed into a
generic one. This allows the original exception to propagate.

Closes gh-2592.
TST: Add tests for exceptions raised by fromiter.

This improves the testing of the edge cases.

Work done with @certik.
BUG: Remove xrange that slipped into test_numeric.py.
STY: Fix trailing whitespace and replace test doctrings by comments.
BUG: Allow to pad arrays by zero entries.

np.pad will now accept a pad_width containing zeros. The functionality
was already implemented, but validation of input was too strict.
TST: New test to ensure np.pad allows pad_width of zero.
ENH: added check for scalar array in get_ufunc_arguments from ufunc_object.c
Check if object is of array dimension zero, then avoid heavy calls like PyArray_FromAny. Hence passing obj to out_op PyArrayObject unchanged. Also PyArray_FromAny(obj,NULL,0,0,0,NULL) calls PyArray_FromArray(obj,NULL,0) which return original obj
Merge pull request #3506 from josteinbf/arraypad-padwidth-zero

Allow pad_width of zero in np.pad
ENH: added check for scalar array in PyArray_FromArray from ctors.c
Check if object is of array dimension zero with newtype is NULL. If so return it directly instead of checking for casting.
ENH: added check for scalar array in PyArray_FromArray from ctors.c
Check if object is of array dimension zero with newtype is NULL. If so return it directly instead of checking for casting.
Merge pull request #3500 from charris/fix-3592

Fix exceptions being swallowed by fromiter.
ENH: added check for scalar array in PyArray_FromArray from ctors.c
Check if object is of array with newtype is NULL. If so return it directly instead of checking for casting.