{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/20389","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/20389/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/20389/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/20389/events","html_url":"https://github.com/JuliaLang/julia/issues/20389","id":204844883,"number":20389,"title":"0.6: vec*mat throws \"Cannot left-multiply a matrix by a vector\" even when mat is 1 x n ","user":{"login":"dlfivefifty","id":1229737,"avatar_url":"https://avatars.githubusercontent.com/u/1229737?v=3","gravatar_id":"","url":"https://api.github.com/users/dlfivefifty","html_url":"https://github.com/dlfivefifty","followers_url":"https://api.github.com/users/dlfivefifty/followers","following_url":"https://api.github.com/users/dlfivefifty/following{/other_user}","gists_url":"https://api.github.com/users/dlfivefifty/gists{/gist_id}","starred_url":"https://api.github.com/users/dlfivefifty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlfivefifty/subscriptions","organizations_url":"https://api.github.com/users/dlfivefifty/orgs","repos_url":"https://api.github.com/users/dlfivefifty/repos","events_url":"https://api.github.com/users/dlfivefifty/events{/privacy}","received_events_url":"https://api.github.com/users/dlfivefifty/received_events","type":"User","site_admin":false},"labels":[{"id":1363386,"url":"https://api.github.com/repos/JuliaLang/julia/labels/breaking","name":"breaking","color":"800000","default":false},{"id":210700,"url":"https://api.github.com/repos/JuliaLang/julia/labels/decision","name":"decision","color":"F08000","default":false},{"id":61807486,"url":"https://api.github.com/repos/JuliaLang/julia/labels/linear%20algebra","name":"linear algebra","color":"aa8800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/JuliaLang/julia/milestones/20","html_url":"https://github.com/JuliaLang/julia/milestone/20","labels_url":"https://api.github.com/repos/JuliaLang/julia/milestones/20/labels","id":1298021,"number":20,"title":"0.6.0","description":"","creator":{"login":"JeffBezanson","id":744556,"avatar_url":"https://avatars.githubusercontent.com/u/744556?v=3","gravatar_id":"","url":"https://api.github.com/users/JeffBezanson","html_url":"https://github.com/JeffBezanson","followers_url":"https://api.github.com/users/JeffBezanson/followers","following_url":"https://api.github.com/users/JeffBezanson/following{/other_user}","gists_url":"https://api.github.com/users/JeffBezanson/gists{/gist_id}","starred_url":"https://api.github.com/users/JeffBezanson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JeffBezanson/subscriptions","organizations_url":"https://api.github.com/users/JeffBezanson/orgs","repos_url":"https://api.github.com/users/JeffBezanson/repos","events_url":"https://api.github.com/users/JeffBezanson/events{/privacy}","received_events_url":"https://api.github.com/users/JeffBezanson/received_events","type":"User","site_admin":false},"open_issues":14,"closed_issues":210,"state":"open","created_at":"2015-09-09T16:35:16Z","updated_at":"2017-02-02T19:28:45Z","due_on":"2017-02-28T08:00:00Z","closed_at":null},"comments":26,"created_at":"2017-02-02T11:15:07Z","updated_at":"2017-02-02T23:03:46Z","closed_at":null,"body":"The following throws an error, even though a column vector times a `1 x n` matrix have consistent shapes.\r\n```\r\njulia> ones(5)*ones(1,5)\r\nERROR: DimensionMismatch(\"Cannot left-multiply a matrix by a vector\")\r\nStacktrace:\r\n [1] *(::Array{Float64,1}, ::Array{Float64,2}) at ./linalg/rowvector.jl:157\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/277112986","html_url":"https://github.com/JuliaLang/julia/issues/20389#issuecomment-277112986","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/20389","id":277112986,"user":{"login":"dlfivefifty","id":1229737,"avatar_url":"https://avatars.githubusercontent.com/u/1229737?v=3","gravatar_id":"","url":"https://api.github.com/users/dlfivefifty","html_url":"https://github.com/dlfivefifty","followers_url":"https://api.github.com/users/dlfivefifty/followers","following_url":"https://api.github.com/users/dlfivefifty/following{/other_user}","gists_url":"https://api.github.com/users/dlfivefifty/gists{/gist_id}","starred_url":"https://api.github.com/users/dlfivefifty/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlfivefifty/subscriptions","organizations_url":"https://api.github.com/users/dlfivefifty/orgs","repos_url":"https://api.github.com/users/dlfivefifty/repos","events_url":"https://api.github.com/users/dlfivefifty/events{/privacy}","received_events_url":"https://api.github.com/users/dlfivefifty/received_events","type":"User","site_admin":false},"created_at":"2017-02-02T23:03:46Z","updated_at":"2017-02-02T23:03:46Z","body":"In any case, they should be consistent. so either also deprecate `vec + mat` or undeprecate `vec*mat`.\r\n\r\nOne way I would be happy with the current setting is if `Vector` denoted an operator on 0-dimensional arrays.  But in that case, the following should work:\r\n```julia\r\njulia> v*ones()\r\nERROR: MethodError: no method matching *(::Array{Int64,1}, ::Array{Float64,0})\r\nClosest candidates are:\r\n  *(::Any, ::Any, ::Any, ::Any...) at operators.jl:281\r\n  *{T}(::Number, ::AbstractArray{T,N} where N) at arraymath.jl:31\r\n  *{T}(::AbstractArray{T,N} where N, ::Number) at arraymath.jl:34\r\n  ...\r\n```\r\n"}}
{"actor":{"display_login":"dlfivefifty"}}