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

Added missing function definitions resolves #64 #65

Merged
merged 9 commits into from
Jul 10, 2023

Conversation

avleenk2312
Copy link
Contributor

@avleenk2312 avleenk2312 commented Jun 29, 2023

As resolved by you the following function definitions have been added to Float16sr and Float32sr for compatibility with GenericFFT:

  1. Base.maxintfloat
  2. Irrational
  3. sincos

I have tested the code. It works well with GenericFFT.

Also, I use mod function in PIC so I have added the definition for it under basic operations as well for both Float16sr and Float32sr.

@avleenk2312 avleenk2312 changed the title Added missing function definitions Added missing function definitions resolves #64 Jun 29, 2023
@milankl milankl linked an issue Jun 29, 2023 that may be closed by this pull request
@milankl milankl added the enhancement New feature or request label Jun 29, 2023
@avleenk2312
Copy link
Contributor Author

I guess the failed checks were already there for Float16sr, right?

milankl added a commit that referenced this pull request Jun 29, 2023
@milankl
Copy link
Owner

milankl commented Jun 29, 2023

I guess the failed checks were already there for Float16sr, right?

Yes I believe there's something wrong with the subnormals (probably in general) but because there's so rarely used, it only shows up with Float16sr. I need to look into this. The probably at the moment is that it happens a (only very) few times that the rounding error is more than $\pm u$, so like 1.5 can be rounded to 0 or 3 for some reason...

@milankl milankl merged commit 97bdf0d into milankl:main Jul 10, 2023
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

GenericFFT.jl compatibility
2 participants