-
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
ERROR: MethodError: no method matching result_style(::Type{StaticArray}) #347
Comments
Broadcasting was reworked just the other day on julia master. In general, I would not rely on packages working on julia master these days. |
OK, thanks. Just pointing the issue in order to help tracking the changes. |
Thanks for reporting this, I think it's a perfectly valid issue so I'm going to reopen it. Fredrik was rightly pointing out that keeping things working relative to julia master is a hard task for package authors. However, we will need to address the issue you've found at some stage. |
So... the question with v0.7 is when to fork from v0.6 development (I think this will be easiest). I'm not seeing much v0.6 StaticArrays development at the moment, and feature freeze for Julia v0.7 should in theory only be weeks away, so I'd suggest we can do this soon. |
I still really hope we can avoid forking the development this time. I don't think a wholesale rewrite will be necessary like it was for 0.6, and I feel the 0.5->0.6 transition was pretty rough for users of this package. Do you know of any really breaking changes which will force the package to work in a significantly different way? |
Hmm... Well, I was thinking of rewriting the internals with I think the |
If we have a completely compatible interface that will probably work out I suppose. Even so, I feel we should hold off on any big changes in master until 0.7 is out for long enough that we have a solid transitional release. I predict it will be better for users and a lot less bug reports for us to deal with ;-) |
Yes, less bug reports is good. :) Regarding the issue at hand - are we thinking of using |
Don't know about |
This issue is ruining my day :-D. Do you think adapting the new |
For sure, please feel free to have a go, I don't think it should be too bad. The Base broadcast machinery is actually documented now, so it should be easier than before. See https://docs.julialang.org/en/latest/manual/interfaces/#man-interfaces-broadcasting-1 Things to look for
|
Looking at the Base docs, you'll probably want to bypass the default machinery before |
Thanks, I'll give it a try, see how far I get |
Probably easier would be to specialize |
That makes sense. @pablosanjose - the trick here is to ensure that the output shape propagates through all the way so that the result type can be fully inferred. Generally that means you'll need to compute the shape recursively. I expect Tim has set it up so it's pretty easy to slot in what we need for |
I gave it a shot. Its a very simple patch, merely reusing the old machinery through the new API. It's perhaps not what you were planning to have long term, but at least broadcast is once more working for me, |
This was solved quite some time ago! |
Hi
found a new issue today (my code was running without any issues, so it must be something related to julia itself)
Julia Version 0.7.0-DEV.2675
Commit f383276c5b (2017-11-27 20:28 UTC)
Platform Info:
OS: Linux (x86_64-redhat-linux)
CPU: Intel(R) Xeon(R) CPU E5-2630 v4 @ 2.20GHz
WORD_SIZE: 64
BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Haswell)
LAPACK: libopenblas64_
LIBM: libopenlibm
LLVM: libLLVM-3.9.1 (ORCJIT, broadwell)
and a fresh clone from this repository.
The error:
The text was updated successfully, but these errors were encountered: