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

Method laplace

benchmarks/benchmarks/bench_app.py:34–39  ·  view source on GitHub ↗
(N, Niter=100, func=num_update, args=())

Source from the content-addressed store, hash-verified

32 out=u[1:(-1), 1:(-1)])
33
34 def laplace(N, Niter=100, func=num_update, args=()):
35 u = np.zeros([N, N], order='C')
36 u[0] = 1
37 for i in range(Niter):
38 func(u, *args)
39 return u
40
41 func = {'inplace': num_inplace, 'normal': num_update}[update]
42

Callers 8

test_laplaceMethod · 0.80
test_laplace_0Method · 0.80
test_laplaceMethod · 0.80
test_laplaceMethod · 0.80
test_laplace_0Method · 0.80
test_laplaceMethod · 0.80
test_laplace_0Method · 0.80
random.pyFile · 0.80

Calls 1

funcFunction · 0.50

Tested by 7

test_laplaceMethod · 0.64
test_laplace_0Method · 0.64
test_laplaceMethod · 0.64
test_laplaceMethod · 0.64
test_laplace_0Method · 0.64
test_laplaceMethod · 0.64
test_laplace_0Method · 0.64