{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/15305","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/15305/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/15305/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/15305/events","html_url":"https://github.com/JuliaLang/julia/issues/15305","id":137582896,"number":15305,"title":"matrix multiply with mismatched inner dimensions gives unexpected result","user":{"login":"johngrogan","id":6134879,"avatar_url":"https://avatars.githubusercontent.com/u/6134879?v=3","gravatar_id":"","url":"https://api.github.com/users/johngrogan","html_url":"https://github.com/johngrogan","followers_url":"https://api.github.com/users/johngrogan/followers","following_url":"https://api.github.com/users/johngrogan/following{/other_user}","gists_url":"https://api.github.com/users/johngrogan/gists{/gist_id}","starred_url":"https://api.github.com/users/johngrogan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johngrogan/subscriptions","organizations_url":"https://api.github.com/users/johngrogan/orgs","repos_url":"https://api.github.com/users/johngrogan/repos","events_url":"https://api.github.com/users/johngrogan/events{/privacy}","received_events_url":"https://api.github.com/users/johngrogan/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/linear%20algebra","name":"linear algebra","color":"aa8800"},{"url":"https://api.github.com/repos/JuliaLang/julia/labels/regression","name":"regression","color":"ff2510"}],"state":"open","locked":false,"assignee":{"login":"andreasnoack","id":505001,"avatar_url":"https://avatars.githubusercontent.com/u/505001?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasnoack","html_url":"https://github.com/andreasnoack","followers_url":"https://api.github.com/users/andreasnoack/followers","following_url":"https://api.github.com/users/andreasnoack/following{/other_user}","gists_url":"https://api.github.com/users/andreasnoack/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasnoack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasnoack/subscriptions","organizations_url":"https://api.github.com/users/andreasnoack/orgs","repos_url":"https://api.github.com/users/andreasnoack/repos","events_url":"https://api.github.com/users/andreasnoack/events{/privacy}","received_events_url":"https://api.github.com/users/andreasnoack/received_events","type":"User","site_admin":false},"milestone":null,"comments":1,"created_at":"2016-03-01T14:08:22Z","updated_at":"2016-03-01T14:25:48Z","closed_at":null,"body":"After updating my copy of julia 0.4, I'm finding multiplying a 3x3 matrix with a 1x3 matrix is producing output. It should complain about mismatched dimensions. Pretty sure it used to complain. Example below.\r\n\r\n```\r\njulia> a = [1 2 3; 0 0 0; 0 0 0]\r\n3x3 Array{Int64,2}:\r\n 1  2  3\r\n 0  0  0\r\n 0  0  0\r\n\r\njulia> b = [1 2 3]\r\n1x3 Array{Int64,2}:\r\n 1  2  3\r\n\r\njulia> a*b\r\n3x3 Array{Int64,2}:\r\n 14  8  3\r\n  0  0  0\r\n  0  0  0\r\n```\r\n\r\nI am building off git clone release-0.4 branch in Linux, and just done an update. Details below.\r\n\r\n```\r\njulia> versioninfo()\r\nJulia Version 0.4.4-pre+35\r\nCommit 1a9429e (2016-02-12 13:21 UTC)\r\nPlatform Info:\r\n  System: Linux (x86_64-linux-gnu)\r\n  CPU: Intel(R) Core(TM)2 Duo CPU     T7500  @ 2.20GHz\r\n  WORD_SIZE: 64\r\n  BLAS: libopenblas (USE64BITINT DYNAMIC_ARCH NO_AFFINITY Core2)\r\n  LAPACK: libopenblas64_\r\n  LIBM: libopenlibm\r\n  LLVM: libLLVM-3.3\r\n```\r\nI did a git pull followed by 'make', to update. I'll try a complete clean and rebuild to see if that changes things."},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/190740801","html_url":"https://github.com/JuliaLang/julia/issues/15305#issuecomment-190740801","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/15305","id":190740801,"user":{"login":"andreasnoack","id":505001,"avatar_url":"https://avatars.githubusercontent.com/u/505001?v=3","gravatar_id":"","url":"https://api.github.com/users/andreasnoack","html_url":"https://github.com/andreasnoack","followers_url":"https://api.github.com/users/andreasnoack/followers","following_url":"https://api.github.com/users/andreasnoack/following{/other_user}","gists_url":"https://api.github.com/users/andreasnoack/gists{/gist_id}","starred_url":"https://api.github.com/users/andreasnoack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andreasnoack/subscriptions","organizations_url":"https://api.github.com/users/andreasnoack/orgs","repos_url":"https://api.github.com/users/andreasnoack/repos","events_url":"https://api.github.com/users/andreasnoack/events{/privacy}","received_events_url":"https://api.github.com/users/andreasnoack/received_events","type":"User","site_admin":false},"created_at":"2016-03-01T14:25:48Z","updated_at":"2016-03-01T14:25:48Z","body":"I can confirm the bug. Accidentally, the change in https://github.com/JuliaLang/julia/commit/6db0a4f31259cee57865d131bd591382a18cca86 removed the check for the inner dimension for 2x2 and 3x3 matrices. I'll submit a PR soon."}}