Beispiel #1
0
 def time_compute_distance2electron(self):
     for _ in range(1000000):
         montecarlo.compute_distance2electron_wrapper(0.0, 0.0, 2.0, 2.0)
Beispiel #2
0
def test_compute_distance2electron():
    assert montecarlo.compute_distance2electron_wrapper(0.0, 0.0, 2.0, 2.0) == 4.0
Beispiel #3
0
 def time_compute_distance2electron(self):
     for _ in range(1000000):
         montecarlo.compute_distance2electron_wrapper(0.0, 0.0, 2.0, 2.0)