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

Method _create_data

numpy/_core/tests/test_multiarray.py:7031–7036  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

7029 funcs = [_mean, _var, _std]
7030
7031 def _create_data(self):
7032 rng = np.random.default_rng(range(3))
7033 rmat = rng.random((4, 5))
7034 cmat = rmat + 1j * rmat
7035 omat = np.array([Decimal(str(r)) for r in rmat.flat]).reshape(4, 5)
7036 return rmat, cmat, omat
7037
7038 def test_python_type(self):
7039 for x in (np.float16(1.), 1, 1., 1 + 0j):

Callers 8

test_ddofMethod · 0.95
test_ddof_too_bigMethod · 0.95
test_mean_valuesMethod · 0.95
test_var_valuesMethod · 0.95
test_var_dimensionsMethod · 0.95
test_std_valuesMethod · 0.95

Calls 2

randomMethod · 0.80
reshapeMethod · 0.80

Tested by

no test coverage detected