Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)
Пример #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)