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

Method test_base_array

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

Source from the content-addressed store, hash-verified

68
69 @pytest.mark.parametrize("axis", [0, 1, -1])
70 def test_base_array(self, axis: int):
71 start = 1
72 stop = 2
73 num = 6
74 base = array([1, 2])
75 t1 = logspace(start, stop, num=num, base=base, axis=axis)
76 t2 = stack(
77 [logspace(start, stop, num=num, base=_base) for _base in base],
78 axis=(axis + 1) % t1.ndim,
79 )
80 assert_equal(t1, t2)
81
82 @pytest.mark.parametrize("axis", [0, 1, -1])
83 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