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

Method setup

benchmarks/benchmarks/bench_linalg.py:114–116  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

112
113class Lstsq(Benchmark):
114 def setup(self):
115 self.a = get_squares_()['float64']
116 self.b = get_indexes_rand()[:100].astype(np.float64)
117
118 def time_numpy_linalg_lstsq_a__b_float64(self):
119 np.linalg.lstsq(self.a, self.b, rcond=-1)

Callers

nothing calls this directly

Calls 3

get_squares_Function · 0.85
get_indexes_randFunction · 0.85
astypeMethod · 0.80

Tested by

no test coverage detected