Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

uniform quaternion generation computationally uneven across different numbers of orientations #2

Open
cmahrens opened this issue Jan 3, 2024 · 0 comments

Comments

@cmahrens
Copy link

cmahrens commented Jan 3, 2024

We noticed a computational anomaly in skopi.get_uniform_quat(N_orientations, True). It spends far less time to do this for 64k or even 256k orientations compared to 8k, 16k, 32k and 128k. Any idea why? Thanks.

>>> def doquat(num):
...     start = time.time()
...     skp.get_uniform_quat(num,True)
...     end = time.time()
...     elapsed = end - start
...     return elapsed
... 
>>> doquat(1024)
0.013123035430908203
>>> doquat(2048)
0.030680179595947266
>>> doquat(1024*8)
22.523311614990234
>>> doquat(1024*16)
44.15811800956726
>>> doquat(1024*32)
86.49000382423401
>>> doquat(1024*64)
0.8508529663085938
>>> doquat(1024*128)
337.60426592826843
>>> doquat(1024*256)
1.994347095489502
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant