{"action":"created","issue":{"url":"https://api.github.com/repos/scipy/scipy/issues/8896","repository_url":"https://api.github.com/repos/scipy/scipy","labels_url":"https://api.github.com/repos/scipy/scipy/issues/8896/labels{/name}","comments_url":"https://api.github.com/repos/scipy/scipy/issues/8896/comments","events_url":"https://api.github.com/repos/scipy/scipy/issues/8896/events","html_url":"https://github.com/scipy/scipy/pull/8896","id":328651774,"node_id":"MDExOlB1bGxSZXF1ZXN0MTkyMTM1NTUy","number":8896,"title":"FIX: generating random sparse matrix with size > max(int32)","user":{"login":"haidark","id":466428,"node_id":"MDQ6VXNlcjQ2NjQyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/466428?v=4","gravatar_id":"","url":"https://api.github.com/users/haidark","html_url":"https://github.com/haidark","followers_url":"https://api.github.com/users/haidark/followers","following_url":"https://api.github.com/users/haidark/following{/other_user}","gists_url":"https://api.github.com/users/haidark/gists{/gist_id}","starred_url":"https://api.github.com/users/haidark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haidark/subscriptions","organizations_url":"https://api.github.com/users/haidark/orgs","repos_url":"https://api.github.com/users/haidark/repos","events_url":"https://api.github.com/users/haidark/events{/privacy}","received_events_url":"https://api.github.com/users/haidark/received_events","type":"User","site_admin":false},"labels":[{"id":37334597,"node_id":"MDU6TGFiZWwzNzMzNDU5Nw==","url":"https://api.github.com/repos/scipy/scipy/labels/defect","name":"defect","color":"e11d21","default":false},{"id":37341004,"node_id":"MDU6TGFiZWwzNzM0MTAwNA==","url":"https://api.github.com/repos/scipy/scipy/labels/scipy.sparse","name":"scipy.sparse","color":"207de5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2018-06-01T20:32:28Z","updated_at":"2018-06-04T15:34:32Z","closed_at":null,"author_association":"NONE","pull_request":{"url":"https://api.github.com/repos/scipy/scipy/pulls/8896","html_url":"https://github.com/scipy/scipy/pull/8896","diff_url":"https://github.com/scipy/scipy/pull/8896.diff","patch_url":"https://github.com/scipy/scipy/pull/8896.patch"},"body":"This fixes the following bug:\r\n```\r\nfrom scipy import sparse\r\nN = 46952\r\nx = sparse.random(N,N, density=100/N/N)\r\n```\r\nThis occurs because the product of the matrix dimensions is larger than the maximum value of np.int32 and so the the `randint()` call fails. The fix passes the correct type to the `dtype` parameter. The documentation should be updated to mention that the `random_state.randint` function must accept a `dtype` argument."},"comment":{"url":"https://api.github.com/repos/scipy/scipy/issues/comments/394398784","html_url":"https://github.com/scipy/scipy/pull/8896#issuecomment-394398784","issue_url":"https://api.github.com/repos/scipy/scipy/issues/8896","id":394398784,"node_id":"MDEyOklzc3VlQ29tbWVudDM5NDM5ODc4NA==","user":{"login":"haidark","id":466428,"node_id":"MDQ6VXNlcjQ2NjQyOA==","avatar_url":"https://avatars1.githubusercontent.com/u/466428?v=4","gravatar_id":"","url":"https://api.github.com/users/haidark","html_url":"https://github.com/haidark","followers_url":"https://api.github.com/users/haidark/followers","following_url":"https://api.github.com/users/haidark/following{/other_user}","gists_url":"https://api.github.com/users/haidark/gists{/gist_id}","starred_url":"https://api.github.com/users/haidark/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/haidark/subscriptions","organizations_url":"https://api.github.com/users/haidark/orgs","repos_url":"https://api.github.com/users/haidark/repos","events_url":"https://api.github.com/users/haidark/events{/privacy}","received_events_url":"https://api.github.com/users/haidark/received_events","type":"User","site_admin":false},"created_at":"2018-06-04T15:34:32Z","updated_at":"2018-06-04T15:34:32Z","author_association":"NONE","body":"Added test to generate random matrix of size `10000000000`, which is greater than `np.iinfo(np.int32).max = 2147483647`."}}
{"actor":{"display_login":"haidark"}}