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

Method _extra_setup

numpy/random/tests/test_smoke.py:107–111  ·  view source on GitHub ↗
(cls)

Source from the content-addressed store, hash-verified

105
106 @classmethod
107 def _extra_setup(cls):
108 cls.vec_1d = np.arange(2.0, 102.0)
109 cls.vec_2d = np.arange(2.0, 102.0)[None, :]
110 cls.mat = np.arange(2.0, 102.0, 0.01).reshape((100, 100))
111 cls.seed_error = TypeError
112
113 def _reset_state(self):
114 self.rg.bit_generator.state = self.initial_state

Callers 7

setup_classMethod · 0.80
setup_classMethod · 0.80
setup_classMethod · 0.80
setup_classMethod · 0.80
setup_classMethod · 0.80
setup_classMethod · 0.80
setup_classMethod · 0.80

Calls 1

reshapeMethod · 0.80

Tested by

no test coverage detected