{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/584","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/584/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/584/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/584/events","html_url":"https://github.com/arrayfire/arrayfire/issues/584","id":69333290,"number":584,"title":"Median breaks for 2D inputs","user":{"login":"umar456","id":457510,"avatar_url":"https://avatars.githubusercontent.com/u/457510?v=3","gravatar_id":"","url":"https://api.github.com/users/umar456","html_url":"https://github.com/umar456","followers_url":"https://api.github.com/users/umar456/followers","following_url":"https://api.github.com/users/umar456/following{/other_user}","gists_url":"https://api.github.com/users/umar456/gists{/gist_id}","starred_url":"https://api.github.com/users/umar456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umar456/subscriptions","organizations_url":"https://api.github.com/users/umar456/orgs","repos_url":"https://api.github.com/users/umar456/repos","events_url":"https://api.github.com/users/umar456/events{/privacy}","received_events_url":"https://api.github.com/users/umar456/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arrayfire/arrayfire/labels/bug","name":"bug","color":"FF0000"},{"url":"https://api.github.com/repos/arrayfire/arrayfire/labels/CPU","name":"CPU","color":"446688"},{"url":"https://api.github.com/repos/arrayfire/arrayfire/labels/CUDA","name":"CUDA","color":"117711"},{"url":"https://api.github.com/repos/arrayfire/arrayfire/labels/OpenCL","name":"OpenCL","color":"ff9900"}],"state":"open","locked":false,"assignee":{"login":"9prady9","id":3270458,"avatar_url":"https://avatars.githubusercontent.com/u/3270458?v=3","gravatar_id":"","url":"https://api.github.com/users/9prady9","html_url":"https://github.com/9prady9","followers_url":"https://api.github.com/users/9prady9/followers","following_url":"https://api.github.com/users/9prady9/following{/other_user}","gists_url":"https://api.github.com/users/9prady9/gists{/gist_id}","starred_url":"https://api.github.com/users/9prady9/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/9prady9/subscriptions","organizations_url":"https://api.github.com/users/9prady9/orgs","repos_url":"https://api.github.com/users/9prady9/repos","events_url":"https://api.github.com/users/9prady9/events{/privacy}","received_events_url":"https://api.github.com/users/9prady9/received_events","type":"User","site_admin":false},"milestone":null,"comments":2,"created_at":"2015-04-18T18:11:00Z","updated_at":"2015-04-18T18:49:38Z","closed_at":null,"body":"The median function only works for 1D datasets. It seems to be broken for all backends.\r\n\r\n```cpp\r\n        array a = randu(15, 15);\r\n        af_print(a);\r\n        af_print(median(a));\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/94190903","html_url":"https://github.com/arrayfire/arrayfire/issues/584#issuecomment-94190903","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/584","id":94190903,"user":{"login":"umar456","id":457510,"avatar_url":"https://avatars.githubusercontent.com/u/457510?v=3","gravatar_id":"","url":"https://api.github.com/users/umar456","html_url":"https://github.com/umar456","followers_url":"https://api.github.com/users/umar456/followers","following_url":"https://api.github.com/users/umar456/following{/other_user}","gists_url":"https://api.github.com/users/umar456/gists{/gist_id}","starred_url":"https://api.github.com/users/umar456/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/umar456/subscriptions","organizations_url":"https://api.github.com/users/umar456/orgs","repos_url":"https://api.github.com/users/umar456/repos","events_url":"https://api.github.com/users/umar456/events{/privacy}","received_events_url":"https://api.github.com/users/umar456/received_events","type":"User","site_admin":false},"created_at":"2015-04-18T18:49:38Z","updated_at":"2015-04-18T18:49:38Z","body":"```\r\nArrayFire v3.0.beta (CPU, 64-bit Mac OSX, build f857ac3)\r\na [15 15 1 1]\r\n   Offsets: [0 0 0 0]\r\n   Strides: [1 15 225 225]\r\n    0.0000     0.5117     0.9362     0.7728     0.5771     0.0667     0.7989     0.0426     0.0414     0.7926     0.9114     0.9838     0.7073     0.9792     0.7351\r\n    0.0850     0.8766     0.4146     0.0717     0.1639     0.8327     0.5930     0.5500     0.1737     0.9524     0.3100     0.6138     0.9779     0.3073     0.9036\r\n    0.6014     0.9951     0.3085     0.1919     0.6985     0.3898     0.8967     0.7351     0.3658     0.9125     0.7935     0.0511     0.2031     0.2258     0.7427\r\n    0.8916     0.7262     0.5149     0.2236     0.3348     0.1909     0.2717     0.4845     0.7515     0.7836     0.9826     0.8416     0.7351     0.8165     0.1760\r\n    0.9680     0.9666     0.3954     0.7804     0.4558     0.1654     0.1980     0.4655     0.3934     0.7944     0.0636     0.2398     0.3620     0.4064     0.3198\r\n    0.1897     0.2971     0.7898     0.0840     0.0762     0.9585     0.2705     0.0073     0.8249     0.5721     0.9645     0.5523     0.9536     0.8620     0.5668\r\n    0.5150     0.4261     0.6891     0.1813     0.1288     0.9908     0.3964     0.2225     0.5635     0.0094     0.2222     0.1047     0.0342     0.6190     0.1744\r\n    0.3980     0.8995     0.5443     0.6167     0.1745     0.1136     0.0959     0.2062     0.7531     0.1529     0.4486     0.9491     0.0495     0.9833     0.3282\r\n    0.2629     0.6530     0.5924     0.5791     0.4418     0.8706     0.6481     0.5715     0.6926     0.5101     0.6138     0.5348     0.8796     0.7546     0.6653\r\n    0.7435     0.9015     0.0936     0.7393     0.0373     0.6223     0.6326     0.1150     0.3190     0.7613     0.3035     0.1788     0.5725     0.1879     0.3946\r\n    0.0895     0.9615     0.6095     0.3141     0.5042     0.6727     0.1251     0.6046     0.8284     0.2956     0.9174     0.5214     0.9818     0.9160     0.2515\r\n    0.5604     0.1647     0.4323     0.4388     0.4674     0.6140     0.1513     0.1701     0.5326     0.6014     0.0562     0.8352     0.0608     0.6665     0.4646\r\n    0.5822     0.8580     0.5995     0.4120     0.5790     0.5877     0.0889     0.6980     0.7804     0.5599     0.2360     0.3300     0.0686     0.0365     0.3892\r\n    0.8096     0.9068     0.8449     0.9089     0.6741     0.1509     0.9489     0.2440     0.1476     0.8471     0.8019     0.4401     0.8116     0.5170     0.1833\r\n    0.5919     0.2940     0.4924     0.9923     0.0934     0.2550     0.5406     0.6647     0.5853     0.5042     0.4363     0.3176     0.1191     0.8306     0.5464\r\n\r\n/Users/umar/devel/arrayfire/src/api/cpp/median.cpp:37: AF_ERROR 7\r\nlibc++abi.dylib: terminating with uncaught exception of type af::exception\r\n```"}}