numpy/numpy — pull request #2875 by ahojnnes (2013-01-01 09:07:51+00:00)
Title: 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.