MCPcopy Create free account
hub / github.com/numpy/numpy / test_stop_base_array

Method test_stop_base_array

numpy/core/tests/test_function_base.py:83–94  ·  view source on GitHub ↗
(self, axis: int)

Source from the content-addressed store, hash-verified

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')

Callers

nothing calls this directly

Calls 4

arrayFunction · 0.90
logspaceFunction · 0.90
stackFunction · 0.90
assert_equalFunction · 0.90

Tested by

no test coverage detected