Exemplo n.º 1
0
 def test_linspace_4(self):
     start = np.random.rand()
     stop = np.random.rand()
     num = int(np.random.rand())
     np.testing.assert_almost_equal(bm.linspace(start, stop, num),
                                    np.linspace(start, stop, num),
                                    decimal=8)
Exemplo n.º 2
0
 def test_linspace_2(self):
     start = 0
     stop = 10
     num = 33
     np.testing.assert_almost_equal(bm.linspace(start, stop, num),
                                    np.linspace(start, stop, num),
                                    decimal=8)
Exemplo n.º 3
0
 def test_linspace_3(self):
     start = 12.234
     stop = -10.456
     np.testing.assert_almost_equal(bm.linspace(start, stop),
                                    np.linspace(start, stop),
                                    decimal=8)
Exemplo n.º 4
0
 def test_linspace_4(self):
     start = np.random.rand()
     stop = np.random.rand()
     num = int(np.random.rand())
     np.testing.assert_almost_equal(bm.linspace(start, stop, num),
                                    np.linspace(start, stop, num), decimal=8)
Exemplo n.º 5
0
 def test_linspace_3(self):
     start = 12.234
     stop = -10.456
     np.testing.assert_almost_equal(bm.linspace(start, stop),
                                    np.linspace(start, stop), decimal=8)
Exemplo n.º 6
0
 def test_linspace_2(self):
     start = 0
     stop = 10
     num = 33
     np.testing.assert_almost_equal(bm.linspace(start, stop, num),
                                    np.linspace(start, stop, num), decimal=8)