{"action":"created","issue":{"url":"https://api.github.com/repos/numpy/numpy/issues/6673","labels_url":"https://api.github.com/repos/numpy/numpy/issues/6673/labels{/name}","comments_url":"https://api.github.com/repos/numpy/numpy/issues/6673/comments","events_url":"https://api.github.com/repos/numpy/numpy/issues/6673/events","html_url":"https://github.com/numpy/numpy/issues/6673","id":116585931,"number":6673,"title":"Unconsistent inplace division due to buffer size","user":{"login":"Dschoni","id":8248171,"avatar_url":"https://avatars.githubusercontent.com/u/8248171?v=3","gravatar_id":"","url":"https://api.github.com/users/Dschoni","html_url":"https://github.com/Dschoni","followers_url":"https://api.github.com/users/Dschoni/followers","following_url":"https://api.github.com/users/Dschoni/following{/other_user}","gists_url":"https://api.github.com/users/Dschoni/gists{/gist_id}","starred_url":"https://api.github.com/users/Dschoni/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dschoni/subscriptions","organizations_url":"https://api.github.com/users/Dschoni/orgs","repos_url":"https://api.github.com/users/Dschoni/repos","events_url":"https://api.github.com/users/Dschoni/events{/privacy}","received_events_url":"https://api.github.com/users/Dschoni/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/numpy/numpy/labels/component:%20numpy.core","name":"component: numpy.core","color":"ff0000"},{"url":"https://api.github.com/repos/numpy/numpy/labels/Invalid","name":"Invalid","color":"009800"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-12T16:29:57Z","updated_at":"2015-11-12T18:58:18Z","closed_at":"2015-11-12T18:55:38Z","body":"Numpy 1.8.2 with python 2.7.6 has unconsistent behaviour when doing inplace division of arrays exceeding the buffer size. \r\n\r\n    import numpy as np\r\n    arr = np.random.rand(2, 5000)\r\n    arr_copy = arr.copy()\r\n    arr_copy = arr_copy / arr_copy[0]\r\n    arr /= arr[0]\r\n    print np.sum(arr != arr_copy), arr.size - np.sum(np.isclose(arr, arr_copy))\r\n\r\nShould print 0 for equal divisions.\r\nThis can be circumvented by increasing the buffersize, nevertheless it should be emphasized, that this can happen."},"comment":{"url":"https://api.github.com/repos/numpy/numpy/issues/comments/156201585","html_url":"https://github.com/numpy/numpy/issues/6673#issuecomment-156201585","issue_url":"https://api.github.com/repos/numpy/numpy/issues/6673","id":156201585,"user":{"login":"pv","id":35046,"avatar_url":"https://avatars.githubusercontent.com/u/35046?v=3","gravatar_id":"","url":"https://api.github.com/users/pv","html_url":"https://github.com/pv","followers_url":"https://api.github.com/users/pv/followers","following_url":"https://api.github.com/users/pv/following{/other_user}","gists_url":"https://api.github.com/users/pv/gists{/gist_id}","starred_url":"https://api.github.com/users/pv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pv/subscriptions","organizations_url":"https://api.github.com/users/pv/orgs","repos_url":"https://api.github.com/users/pv/repos","events_url":"https://api.github.com/users/pv/events{/privacy}","received_events_url":"https://api.github.com/users/pv/received_events","type":"User","site_admin":false},"created_at":"2015-11-12T18:58:18Z","updated_at":"2015-11-12T18:58:18Z","body":"iow, duplicate of gh-1683, gh-6272"}}