Skip to content
Snippets Groups Projects
Commit cbe067d1 authored by Martin Reinecke's avatar Martin Reinecke
Browse files

removed unused file ... again

parent 857ee0f3
Branches
Tags
No related merge requests found
Pipeline #
def probe_operation(soperation, domain, nprobes,
random_type, dtype):
for i in range(nprobes):
f = Field.from_random(random_type=random_type, domain=domain,
dtype=dtype)
tmp = operator(f)
if i==0:
mean = [0]*len(tmp)
var = [0]*len(tmp)
for i in range(len(tmp)):
mean[i] += tmp[i]
var[i] += tmp[i]**2
for i in range(len(tmp)):
mean[i] *= 1./nprobes
var[i] *= 1./nprobes
var[i] -= mean[i]**2
return mean, var
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment