Useful extensiona to numpy.