-
Notifications
You must be signed in to change notification settings - Fork 24
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
Hyperspherical coordinates #85
Comments
+1 I can't find a Julia package that implements hyperspherical coordinates yet. Knowing that these coordinates don't have a single definition for |
So I made myself functions to move from Cartesian to
And
|
This looks amazing, thank you so much! Could you make a pull request adding this? |
Surely! It's going to take a while (weeks?), since I'm quite busy these days. I'll have to understand the codebase and fit at the right place, while also documenting what is being done here. |
+1 Also need Hyperspherical coordinates, and the associated Jacobian and determinant. |
See this post for sketch of how to do this kind of transformation in a completely unrolled way for
This is particularly inefficient: not only does it allocate a new temporary array for every loop iteration (In my linked code, I compute |
This was a good time to poke this thread, I just quit my job and have free time and energy to look at this again. At a glance, adding hyperspherical coordinates is a "big" change for this package, since only 2D and 3D coordinate systems are implemented. I'll have to look deeper into adding an ND Wikipedia's spherical coordinates definition seems like a good start point for the transforms. Thank you @stevengj for pointing the inefficiency, I'll study your code snippet. A non-exhaustive todo list:
Also... |
+1 for |
Small update. I'm still working on it, albeit slowly. Current todo list:
|
Spherical coordinates can be generalized to hyperspherical coordinates, as discussed here.
The text was updated successfully, but these errors were encountered: