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

Gradient only SHTs #12

Merged
merged 2 commits into from
Mar 16, 2023
Merged

Gradient only SHTs #12

merged 2 commits into from
Mar 16, 2023

Conversation

mreineck
Copy link
Owner

Implements #11

This adds a mode keyword to most of the SHT functions. Default is "STANDARD", which leads to the original behaviour. "GRAD_ONLY" expects two map components and one alm component, and should behave as if the curl a_lm are zero. "DERIV1" exists for completeness and behaves analogously to the _deriv1 functions.

Adjoint functions are implemented as well; they simply don't generate any curl a_lm on output.

Docstrings are not yet updated; I fear they will become quite convoluted, since the array dimensions now depend even more on the values of other parameters.

@carronj , @Sebastian-Belkner , do you want to have a look?

@carronj
Copy link
Collaborator

carronj commented Mar 15, 2023 via email

@mreineck
Copy link
Owner Author

If it is that simple to put in, why not a CURL_ONLY mode right away as well :).

If it is going to be used, sure!

If it isn't used, it will still increase compile time and binary size for everyone, and that makes me a bit reluctant.

@mreineck mreineck merged commit 7b3f473 into more_general_sht_work Mar 16, 2023
@mreineck mreineck deleted the grad_only_shts branch March 16, 2023 14:54
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

Successfully merging this pull request may close these issues.

2 participants