-
Notifications
You must be signed in to change notification settings - Fork 148
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
Type-unstable code in Julia master #321
Comments
This code has probably fallen victim of some of the inference heuristics - so perhaps there's not much which can be done about it in What happens when you simply remove the arg = d_lng * d + M_lng * M + Mprime_lng * Mprime + F_lng * F + ω_lng * ω Efficient |
Ok, that does the trick, thanks! Is it worth reporting this issue to Julia? It's quite annoying also because it's a regression, it used to work with previous versions. |
It's probably worth reporting, but first worth exploring which parts you can remove until it just starts working. Eg, does it depend on the length of the |
Thank you. As I said in the first message, it does depend on the number of operations, it works with @. d_lng * d + M_lng * M |
This code:
results in a type-unstable function on Julia master:
Instead, everything is fine in Julia 0.6. The function is type-stable if the value of
arg
is replaced by:It is stable also with
The text was updated successfully, but these errors were encountered: