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

Method uniform

benchmarks/benchmarks/bench_function_base.py:205–209  ·  view source on GitHub ↗

Returns an array that has the same value everywhere.

(size, dtype, rnd)

Source from the content-addressed store, hash-verified

203 @staticmethod
204 @memoize
205 def uniform(size, dtype, rnd):
206 """
207 Returns an array that has the same value everywhere.
208 """
209 return np.ones(size, dtype=dtype)
210
211 @staticmethod
212 @memoize

Callers 15

test_generator_spawningFunction · 0.80
test_uniformMethod · 0.80
test_uniformMethod · 0.80
test_uniformMethod · 0.80
test_uniform_arrayMethod · 0.80
test_uniformMethod · 0.80
test_uniformMethod · 0.80
test_uniformMethod · 0.80
test_uniformMethod · 0.80

Calls

no outgoing calls

Tested by 15

test_generator_spawningFunction · 0.64
test_uniformMethod · 0.64
test_uniformMethod · 0.64
test_uniformMethod · 0.64
test_uniform_arrayMethod · 0.64
test_uniformMethod · 0.64
test_uniformMethod · 0.64
test_uniformMethod · 0.64
test_uniformMethod · 0.64