Skip to content

Instantly share code, notes, and snippets.

@hugohadfield
Created November 17, 2017 17:04
Show Gist options
  • Save hugohadfield/4b0718c4d7662dec8d71cf76d2d499c6 to your computer and use it in GitHub Desktop.
Save hugohadfield/4b0718c4d7662dec8d71cf76d2d499c6 to your computer and use it in GitHub Desktop.
Planar radon transform with original np.dot implementation
Display the source blob
Display the rendered blob
Raw
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@hugohadfield
Copy link
Author

hugohadfield commented Nov 17, 2017

    24018270 function calls (24017466 primitive calls) in 54.058 seconds

Ordered by: cumulative time

ncalls tottime percall cumtime percall filename:lineno(function)
1 0.000 0.000 54.058 54.058 {built-in method builtins.exec}
1 0.031 0.031 54.058 54.058 :4()
800 0.003 0.000 53.614 0.067 :153(planar_radon_transform)
821216 1.161 0.000 47.189 0.000 init.py:715(mul)
1642698 38.159 0.000 38.159 0.000 {built-in method numpy.core.multiarray.dot}
800 0.433 0.001 36.849 0.046 :32(intersect_spheres_and_plane)
204000 0.401 0.000 23.046 0.000 :16(MeetSpheres)
800 0.092 0.000 16.543 0.021 :161()
204000 0.383 0.000 16.451 0.000 :19(generate_sphere_from_dual)
1237895 0.952 0.000 8.527 0.000 init.py:681(_checkOther)
1029158 0.359 0.000 5.391 0.000 init.py:342(ne)
1029158 1.122 0.000 5.032 0.000 init.py:339(eq)
1029158 0.901 0.000 3.910 0.000 fromnumeric.py:1973(all)
1029158 0.378 0.000 2.394 0.000 {method 'all' of 'numpy.ndarray' objects}
2675822 0.656 0.000 2.229 0.000 {built-in method builtins.isinstance}
1444774 0.676 0.000 2.223 0.000 init.py:704(_newMV)
204001 0.266 0.000 2.155 0.000 init.py:816(sub)
1029158 0.269 0.000 2.016 0.000 _methods.py:40(_all)
1029158 1.748 0.000 1.748 0.000 {method 'reduce' of 'numpy.ufunc' objects}
204000 1.402 0.000 1.740 0.000 init.py:1138(call)
1237895 0.943 0.000 1.573 0.000 abc.py:178(instancecheck)
1444774 0.944 0.000 1.547 0.000 init.py:641(init)
206403 0.445 0.000 1.049 0.000 init.py:732(rmul)
2477032 0.709 0.000 0.709 0.000 {built-in method numpy.core.multiarray.array}
2267058 0.630 0.000 0.630 0.000 _weakrefset.py:70(contains)
1029158 0.512 0.000 0.614 0.000 numeric.py:534(asanyarray)
1 0.000 0.000 0.412 0.412 :81(draw_points_from_plane)
281049 0.320 0.000 0.321 0.000 init.py:1046(getitem)
1 0.000 0.000 0.279 0.279 :83()
255 0.001 0.000 0.279 0.001 :73(projection_point_in_plane)
800 0.003 0.000 0.180 0.000 :48(generate_plane_from_dual)
1 0.025 0.025 0.132 0.132 :64(sample_sphere)
255 0.001 0.000 0.123 0.000 init.py:2225(down)
513 0.002 0.000 0.090 0.000 init.py:2219(up)
801 0.001 0.000 0.080 0.000 :86(normalise_plane)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment