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

Incomplete fix/workaround for broadcast static type inference (#4673) #4741

Merged
merged 2 commits into from
Nov 8, 2013

Conversation

simonster
Copy link
Member

This changes the order of broadcast function definitions to work around #4675. (No longer necessary since bfe8986). It also attempts to fix static type inference for the dimensionality of the returned array to fix #4673, although this only works for cases of sufficiently low dimensionality (code_typed(.*, (Matrix{Float64}, Array{Float64, 8})) works, but code_typed(.*, (Matrix{Float64}, Array{Float64, 9})) does not; code_typed(.*, (Matrix{Float64}, Matrix{Float64}, Matrix{Float64})) works but code_typed(.*, (Matrix{Float64}, Matrix{Float64}, Array{Float64, 3})) does not).

I'm not fully satisfied with this, but I'm putting it out there in case someone has an idea of how to make it more satisfactory.

…ang#4673)

This attempts to infer the dimensionality of the returned array,
although this only works for cases of sufficiently low
dimensionality.
JeffBezanson added a commit that referenced this pull request Nov 8, 2013
Incomplete fix/workaround for broadcast static type inference (#4673)
@JeffBezanson JeffBezanson merged commit f81aa2a into JuliaLang:master Nov 8, 2013
@simonster simonster mentioned this pull request Jan 9, 2014
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.

Static type inference issues with broadcast
2 participants