{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/2650","repository_url":"https://api.github.com/repos/numpy/numpy","labels_url":"https://api.github.com/repos/numpy/numpy/issues/2650/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/2650/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/2650/events","html_url":"https://github.com/numpy/numpy/issues/2650","id":7731798,"node_id":"MDU6SXNzdWU3NzMxNzk4","number":2650,"title":"Strange behavior of binary ufunc with scipy sparse matrices (Trac #2058)","user":{"login":"numpy-gitbot","id":1955252,"node_id":"MDQ6VXNlcjE5NTUyNTI=","avatar_url":"https://avatars0.githubusercontent.com/u/1955252?v=4","gravatar_id":"","url":"https://api.github.com/users/numpy-gitbot","html_url":"https://github.com/numpy-gitbot","followers_url":"https://api.github.com/users/numpy-gitbot/followers","following_url":"https://api.github.com/users/numpy-gitbot/following{/other_user}","gists_url":"https://api.github.com/users/numpy-gitbot/gists{/gist_id}","starred_url":"https://api.github.com/users/numpy-gitbot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/numpy-gitbot/subscriptions","organizations_url":"https://api.github.com/users/numpy-gitbot/orgs","repos_url":"https://api.github.com/users/numpy-gitbot/repos","events_url":"https://api.github.com/users/numpy-gitbot/events{/privacy}","received_events_url":"https://api.github.com/users/numpy-gitbot/received_events","type":"User","site_admin":false},"labels":[{"id":6359214,"node_id":"MDU6TGFiZWw2MzU5MjE0","url":"https://api.github.com/repos/numpy/numpy/labels/00%20-%20Bug","name":"00 - Bug","color":"fef2c0","default":false},{"id":16917029,"node_id":"MDU6TGFiZWwxNjkxNzAyOQ==","url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"009800","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2012-10-19T22:34:30Z","updated_at":"2018-11-13T08:19:53Z","closed_at":null,"author_association":"NONE","body":"_Original ticket http://projects.scipy.org/numpy/ticket/2058 on 2012-02-17 by @pv, assigned to unknown._\n\nThe ufuncs behave strangely when fed Scipy sparse matrices:\n\n```\nimport numpy as np\nimport scipy.sparse as sp\nA = sp.csc_matrix(np.identity(5))\nB = np.asmatrix(np.ones((5,5)))\nprint np.multiply(A,A)\n# <5x5 sparse matrix of type '<class 'numpy.float64'>'\n#   with 5 stored elements in Compressed Sparse Column format>\nprint np.multiply(B,A)\n# NotImplemented\nprint np.multiply(A,B).dtype\n# object\n```\n\nThere are a couple things amiss here, the reason for which probably resides in Numpy:\n- returning NotImplemented instead of raising ValueError (same as #2091 )\n- it seems that in the last case, `csc_matrix.multiply` is not called.\n\nSee also: http://projects.scipy.org/scipy/ticket/1598\n"},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/438176455","html_url":"https://github.com/numpy/numpy/issues/2650#issuecomment-438176455","issue_url":"https://api.github.com/repos/numpy/numpy/issues/2650","id":438176455,"node_id":"MDEyOklzc3VlQ29tbWVudDQzODE3NjQ1NQ==","user":{"login":"ron819","id":40163787,"node_id":"MDQ6VXNlcjQwMTYzNzg3","avatar_url":"https://avatars3.githubusercontent.com/u/40163787?v=4","gravatar_id":"","url":"https://api.github.com/users/ron819","html_url":"https://github.com/ron819","followers_url":"https://api.github.com/users/ron819/followers","following_url":"https://api.github.com/users/ron819/following{/other_user}","gists_url":"https://api.github.com/users/ron819/gists{/gist_id}","starred_url":"https://api.github.com/users/ron819/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ron819/subscriptions","organizations_url":"https://api.github.com/users/ron819/orgs","repos_url":"https://api.github.com/users/ron819/repos","events_url":"https://api.github.com/users/ron819/events{/privacy}","received_events_url":"https://api.github.com/users/ron819/received_events","type":"User","site_admin":false},"created_at":"2018-11-13T08:19:53Z","updated_at":"2018-11-13T08:19:53Z","author_association":"NONE","body":"Is this still an issue?"}}
{"actor":{"display_login":"ron819"}}