MCPcopy Index your code
hub / github.com/numpy/numpy / test_base_array

Method test_base_array

numpy/_core/tests/test_function_base.py:96–106  ·  view source on GitHub ↗
(self, axis: int)

Source from the content-addressed store, hash-verified

94
95 @pytest.mark.parametrize("axis", [0, 1, -1])
96 def test_base_array(self, axis: int):
97 start = 1
98 stop = 2
99 num = 6
100 base = array([1, 2])
101 t1 = logspace(start, stop, num=num, base=base, axis=axis)
102 t2 = stack(
103 [logspace(start, stop, num=num, base=_base) for _base in base],
104 axis=(axis + 1) % t1.ndim,
105 )
106 assert_equal(t1, t2)
107
108 @pytest.mark.parametrize("axis", [0, 1, -1])
109 def test_stop_base_array(self, axis: int):

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