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

Import functions from cmath when domain is complex #358

Merged
merged 4 commits into from
Dec 1, 2023
Merged

Conversation

e-moral-sanchez
Copy link
Contributor

@e-moral-sanchez e-moral-sanchez commented Dec 1, 2023

Functions in printed code now are imported from cmath instead of Numpy in the case of a complex domain. This solves #313.

If the domain is real they are imported from math as before.

This change requires Pyccel version >= 1.9.2 which supports the cmath library.

@yguclu yguclu merged commit 78567a7 into devel Dec 1, 2023
6 checks passed
@yguclu yguclu deleted the fix_print_import branch December 1, 2023 22:52
@e-moral-sanchez e-moral-sanchez linked an issue Dec 5, 2023 that may be closed by this pull request
@e-moral-sanchez e-moral-sanchez mentioned this pull request Dec 5, 2023
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.

Use Cmath library
2 participants