Fix dirty handling of internal compiler variable 
__LDBL_DENORM_MIN__ with C11 LDBL_TRUE_MIN
(with help from @jedbrown)
LDBL_TRUE_MIN falls back to __LDBL_DENORM_MIN__ if not defined
ENH: Add kwarg support for vectorize (tickets #2100, #1156, and #1487)

  This is a substantial rewrite of vectorize to remove all introspection and
  caching behaviour.  This greatly simplifies the logic of the code, and allows
  for much more generalized behaviour, simultaneously fixing tickets #1156,
  #1487, and #2100.  There will probably be a performance hit because caching is
  no longer used (but should be able to be reinstated if needed).
  As vectorize is a convenience function with poor performance in general,
  perhaps this is okay.  Rather than trying to inspect the function to determine
  the number of arguments, defaults, and argument names, we just use the
  arguments passed on the call to determine the behaviour on each call.

  All tests pass and code is fully covered

Fixes:
Ticket #2100: kwarg support for vectorize
- API: Optional excluded argument to exclude some args from vectorization.
- Added documentation, examples, and coverage tests
- Added additional coverage test and base case for functions with no args
- Factored original behaviour into _vectorize_call
- Some minor documentation and error message corrections

Ticket #1156: Support vectorizing over instance methods
- No longer an issue since everything is determined by the call.

Ticket: #1487: result depends on execution order
- No longer caching, so the behaviour is as was expected.

ENH: Simple cache for vectorize

- Added simple cache to prevent vectorize from calling pyfunc twice on the first
  argument when determining the output types and added regression test.
- Added documentation for excluded positional arguments.
- Documentation cleanups.
- Cleaned up variable names.

ENH: Performance improvements for backward compatibility of vectorize.

After some simple profiling, I found that the wrapping used to
support the caching of the previous commit wasted more time than
it saved, so I added a flag to allow the user to toggle.  Moral:
caching makes sense only if the function is expensive and is off
by default.

I also compared performance with the original vectorize and opted
for keeping a cache of _ufunc if otypes is specified and there are
no kwargs/excluded vars.  This case is easy to implement, and allows
users to reproduce (almost) the old performance characteristics if
needed. (The new version is about 5% slower in this case).

It would be much more complicated to add a similar cache in the case
where kwargs are used, and since a wrapper is used here, the
performance gain would be negligible (profiling showed that wrapping
was a more significant slowdown than the extra call to frompyfunc).

- API: Added cache kwarg which allows the user to toggle caching
       of the first result.
- DOC: Added Notes section with a discussion of performance and a
       warning that vectorize should not be used for performance.
- Added private _ufunc member to implement old-style of cache for
  special case with no kwargs, excluded, and with otypes specified.
- Modified test case.

Partially address ticket #1982
- I tried to use hasattr(outputs, '__len__') rather than
  isinstance(outputs, tuple) in order to allow for functions to return
  lists.  This, however, means that strings will get vectorized over
  each character which breaks previous behaviour.  Keeping old
  behaviour for now.
BUG: Add a gap in NPY_DATETIMEUNIT enum where 1.6 had the busday unit

1.7 doesn't have the business day unit, but instead provides
a separate business day API. For binary compatibility, as
experienced in Pandas use of datetime64, it's a good idea for
the numbers to stay the same.
Add .travis.yml for Travis CI (http://travis-ci.org/)
ENH: report bad value and dimenion to IndexError exceptions
Add check_and_adjust_index(), and replace most index checks with it.

This commit adds a check_and_adjust_index(npy_intp *index, npy_intp max, int axis) function
which checks index against max, setting an IndexError and returning -1 if it's not valid,
and otherwise adjusting index in-place to handle Python's negative indexing, and returning 0.

It also changes most places in the code where indexes were being checked and adjusted with a
call to this function.
Add coverage tests for IndexErrors, fix one bug, clean up two checks

Adds numpy/core/tests/test_indexerrors.py with tests to cover failure cases in indexing not covered
by other tests.

Added a missing check for invalid index in multiarray/iterators.c:iter_ass_sub_int().
Used the new checking code in multiarray/iterators.c:iter_ass_subscript().
Changed a ValueError to an IndexError in multiarray/mapping.c:PyArray_MapIterBind().
fix previous patch: c_metdata should match metadata before DECREF
Merge pull request #304 from thouis/datetime_refcnt

fix previous patch: c_metadata should match metadata before DECREF
TST: pickling MaskedConstant
BUG: fix pickling MaskedConstant
fix the wrapping problem of fill_diagonal with tall matrix.
add the warp parameter to fill_diagonal for people that could want the old behavior.
remove unused variables from histogramdd
Merge pull request #308 from jakevdp/histogram_fix

Remove unused declarations
Merge pull request #306 from nouiz/fill_diagonal

fix the wrapping problem of fill_diagonal with tall matrix.
Merge pull request #305 from r0k3/picklemaskedconstant

Fix for the error while pickling MaskedConstant.
Merge pull request #295 from mwiebe/datetime_unit_16compat

BUG: Add a gap in NPY_DATETIMEUNIT enum where 1.6 had the busday unit
Merge pull request #290 from mforbes/new-vectorize-clean

ENH: Add kwarg support for vectorize (tickets #2100, #1156, and #1487) (clean)