Add convenience functions nans, infs, nans_like, infs_like 

I find myself often in the situation where I type the long version of this:

    b = np.empty_like(a, dtype=np.double)
    b[:] = np.inf

Please let me know if you find this useful as well and I will add test cases for those functions.