(self, axis: int)
| 81 | |
| 82 | @pytest.mark.parametrize("axis", [0, 1, -1]) |
| 83 | def test_stop_base_array(self, axis: int): |
| 84 | start = 1 |
| 85 | stop = array([2, 3]) |
| 86 | num = 6 |
| 87 | base = array([1, 2]) |
| 88 | t1 = logspace(start, stop, num=num, base=base, axis=axis) |
| 89 | t2 = stack( |
| 90 | [logspace(start, _stop, num=num, base=_base) |
| 91 | for _stop, _base in zip(stop, base)], |
| 92 | axis=(axis + 1) % t1.ndim, |
| 93 | ) |
| 94 | assert_equal(t1, t2) |
| 95 | |
| 96 | def test_dtype(self): |
| 97 | y = logspace(0, 6, dtype='float32') |
nothing calls this directly
no test coverage detected