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

Method zeros_like

numpy/fft/tests/test_pocketfft.py:91–95  ·  view source on GitHub ↗
(x)

Source from the content-addressed store, hash-verified

89 @pytest.mark.parametrize("transpose", (True, False))
90 def test_fft_out_argument(self, dtype, transpose, axis):
91 def zeros_like(x):
92 if transpose:
93 return np.zeros_like(x.T).T
94 else:
95 return np.zeros_like(x)
96
97 # tests below only test the out parameter
98 if dtype is complex:

Callers 15

resizeFunction · 0.80
test_accumulationFunction · 0.80
test_stackFunction · 0.80
test_stack_out_and_dtypeFunction · 0.80
test_take_outputMethod · 0.80
test_blockedMethod · 0.80
test_datetime_likeMethod · 0.80
test_axis_argumentMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected