'This is testing numpy ufunc dispatch machinery'

def test_type_inference(self):

    global vector_add
    vector_add = vectorize([bool_(double, int_), double(double, double), float_(double, float_)])(add)
    cfunc = jit(func)
    def numba_type_equal(a, b):
        self.assertEqual(a.dtype, b.dtype)
        self.assertEqual(a.ndim, b.ndim)
    numba_type_equal(cfunc(np.dtype(np.float64), np.dtype('i')), bool_[:])
    numba_type_equal(cfunc(np.dtype(np.float64), np.dtype(np.float64)), double[:])
    numba_type_equal(cfunc(np.dtype(np.float64), np.dtype(np.float32)), double[:])
