Skip to content

Use sincos() rather than separate sin/cos for expj#958

Merged
tbensonatl merged 1 commit into
mainfrom
opt/use-sincos-when-possible-for-expj
May 4, 2025
Merged

Use sincos() rather than separate sin/cos for expj#958
tbensonatl merged 1 commit into
mainfrom
opt/use-sincos-when-possible-for-expj

Conversation

@tbensonatl
Copy link
Copy Markdown
Collaborator

As an optimization, use sincos() to compute the real and imaginary components of expj() rather than separate sin() and cos(). Also update the expj example in the documentation and add new test cases.

As an optimization, use sincos() to compute the real and
imaginary components of expj() rather than separate sin()
and cos(). Also update the expj example in the documentation.

Signed-off-by: Thomas Benson <tbenson@nvidia.com>
@tbensonatl tbensonatl requested a review from cliffburdick May 4, 2025 01:28
@tbensonatl tbensonatl self-assigned this May 4, 2025
@tbensonatl
Copy link
Copy Markdown
Collaborator Author

/build

@tbensonatl tbensonatl merged commit aad5d1d into main May 4, 2025
1 check passed
@tbensonatl tbensonatl deleted the opt/use-sincos-when-possible-for-expj branch May 4, 2025 19:41
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