def test_floating_point_types(self, func_name, ndim, dtype):
        """This test checks the most frequently used datatypes
        to make sure that the results match with numpy. The
        arrays may or may not contain NaNs.
        """
        shape = (4,) * ndim
        size = prod(shape)

        in_np = np.random.choice(size, size, replace=False) * np.random.rand(1)
        in_np = in_np.astype(dtype)

        in_num = num.array(in_np, dtype=dtype)

        func_np = getattr(np, func_name)
        func_num = getattr(num, func_name)

        out_np = func_np(in_np)
        out_num = func_num(in_num)

        assert np.array_equal(out_num, out_np)
This test checks the most frequently used datatypes
        to make sure that the results match with numpy. The
        arrays may or may not contain NaNs.
        
tests/integration/test_nanarg_reduction.py