{"action":"created","issue":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/18247","repository_url":"https://api.github.com/repos/JuliaLang/julia","labels_url":"https://api.github.com/repos/JuliaLang/julia/issues/18247/labels{/name}","comments_url":"https://api.github.com/repos/JuliaLang/julia/issues/18247/comments","events_url":"https://api.github.com/repos/JuliaLang/julia/issues/18247/events","html_url":"https://github.com/JuliaLang/julia/issues/18247","id":173331049,"number":18247,"title":"Any reason to not return a \"DiagonalMatrix\" type in eye()?","user":{"login":"juliohm","id":3345261,"avatar_url":"https://avatars.githubusercontent.com/u/3345261?v=3","gravatar_id":"","url":"https://api.github.com/users/juliohm","html_url":"https://github.com/juliohm","followers_url":"https://api.github.com/users/juliohm/followers","following_url":"https://api.github.com/users/juliohm/following{/other_user}","gists_url":"https://api.github.com/users/juliohm/gists{/gist_id}","starred_url":"https://api.github.com/users/juliohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliohm/subscriptions","organizations_url":"https://api.github.com/users/juliohm/orgs","repos_url":"https://api.github.com/users/juliohm/repos","events_url":"https://api.github.com/users/juliohm/events{/privacy}","received_events_url":"https://api.github.com/users/juliohm/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/JuliaLang/julia/labels/linear%20algebra","name":"linear algebra","color":"aa8800"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2016-08-25T22:58:42Z","updated_at":"2016-08-26T14:25:20Z","closed_at":null,"body":"```julia\r\ntypeof(eye(3))\r\n```\r\n>Array{Float64,2}\r\n\r\nA dense matrix is being returned always, which is not desired. It also makes code look uglier:\r\n\r\n```julia\r\neigvals(eye(3), 1:2) # fails\r\neigavals(Symmetric(eye(3)), 1:2) # works, but... hmm...\r\n```"},"comment":{"url":"https://api.github.com/repos/JuliaLang/julia/issues/comments/242749965","html_url":"https://github.com/JuliaLang/julia/issues/18247#issuecomment-242749965","issue_url":"https://api.github.com/repos/JuliaLang/julia/issues/18247","id":242749965,"user":{"login":"juliohm","id":3345261,"avatar_url":"https://avatars.githubusercontent.com/u/3345261?v=3","gravatar_id":"","url":"https://api.github.com/users/juliohm","html_url":"https://github.com/juliohm","followers_url":"https://api.github.com/users/juliohm/followers","following_url":"https://api.github.com/users/juliohm/following{/other_user}","gists_url":"https://api.github.com/users/juliohm/gists{/gist_id}","starred_url":"https://api.github.com/users/juliohm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/juliohm/subscriptions","organizations_url":"https://api.github.com/users/juliohm/orgs","repos_url":"https://api.github.com/users/juliohm/repos","events_url":"https://api.github.com/users/juliohm/events{/privacy}","received_events_url":"https://api.github.com/users/juliohm/received_events","type":"User","site_admin":false},"created_at":"2016-08-26T14:25:20Z","updated_at":"2016-08-26T14:25:20Z","body":"Thank you Kristoffer, my concern is two-fold: 1) why we are not taking\nadvantage of eye() structure in code that uses it? and 2) I can easily\noverwrite a variable called I in my user code.\n"}}
{"actor":{"display_login":"juliohm"}}