-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
no method for scalar divsion by Array{} #25640
Comments
On master: julia> 1/x
1×4 Transpose{Float64,Array{Float64,1}}:
0.0333333 0.0666667 0.1 0.133333
julia> 1/y
1×4 Transpose{Float64,Array{Float64,1}}:
0.0333333 0.0666667 0.1 0.13333 Ok to close? |
Looks good to me. Thanks! |
Welcome! Just a quick note: this now means something very different from |
Thanks for the note, @mbauman. As a quick clarification, are you referring to the changes noted in the 0.6.0 release?
|
No, I mean to say that Julia 0.6: Ranges have a special non-idiomatic behavior where
Julia 0.7:
|
It appears that there is no method for scalar division by an
Array{}
. Here is a quick example:As you can see,
/
works when usingStepRangeLen{}
, but not forArray{}
. It might be worth noting that1./y
works as expected.I observed this behavior on:
I'd be surprised if I'm the first person to notice this, so my apologies if this is a known issue.
The text was updated successfully, but these errors were encountered: