-
Notifications
You must be signed in to change notification settings - Fork 29
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
Avoid if-else-end in parsevalsum/parsevalsum2 #239
Comments
To make dispatch possible, information must be encoded via type specification. Given an array of numbers representing a Fourier transform, there's no way to infer whether uh has the "conjugate symmetric" form or not. Probably the right way to permit functionality like this is to use a |
#FourierFlows v2.0 |
Also #129 |
But for now we can write two separate functions, eg |
Since benchmarks in #250 didn't reveal that any benefit was gained, I'm closing this issue. |
Any idea how to overload the
parsevalsum()
/parsevalsum2()
functions to avoid the if statements, e.g., here:FourierFlows.jl/src/utils.jl
Line 110 in ca332a9
?
cc @glwagner
The text was updated successfully, but these errors were encountered: