{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4s/issues/52","labels_url":"https://api.github.com/repos/deeplearning4j/nd4s/issues/52/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4s/issues/52/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4s/issues/52/events","html_url":"https://github.com/deeplearning4j/nd4s/issues/52","id":103377495,"number":52,"title":"nd4s slicing is broken","user":{"login":"rahulpalamuttam","id":5025939,"avatar_url":"https://avatars.githubusercontent.com/u/5025939?v=3","gravatar_id":"","url":"https://api.github.com/users/rahulpalamuttam","html_url":"https://github.com/rahulpalamuttam","followers_url":"https://api.github.com/users/rahulpalamuttam/followers","following_url":"https://api.github.com/users/rahulpalamuttam/following{/other_user}","gists_url":"https://api.github.com/users/rahulpalamuttam/gists{/gist_id}","starred_url":"https://api.github.com/users/rahulpalamuttam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rahulpalamuttam/subscriptions","organizations_url":"https://api.github.com/users/rahulpalamuttam/orgs","repos_url":"https://api.github.com/users/rahulpalamuttam/repos","events_url":"https://api.github.com/users/rahulpalamuttam/events{/privacy}","received_events_url":"https://api.github.com/users/rahulpalamuttam/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-08-26T22:14:02Z","updated_at":"2015-09-05T13:48:47Z","closed_at":null,"body":"The slicing operation in nd4s is broken. Consider the following example :\r\n\r\n    val nd = Nd4j.create((0d to 8d by 1d).toArray, Array(4, 2))\r\n    println(nd)\r\n    println(nd(0 -> 2, 2 -> 4))\r\n\r\nOUTPUT : \r\n[[0.00,1.00]\r\n [2.00,3.00]\r\n [4.00,5.00]\r\n [6.00,7.00]]\r\n\r\n[[0.00,2.00]\r\n [4.00,6.00]]\r\n\r\nNote that what should be printed out from the slicing operation is \r\n[[0.00,1.00]\r\n [2.00,3.00]\r\n\r\nThe error seems to be coming from TupleRange in Implicits.\r\nAtleast that's the api call I used to trace through the error before I got lost in the implicits conversions."},"comment":{"url":"https://api.github.com/repos/deeplearning4j/nd4s/issues/comments/137957601","html_url":"https://github.com/deeplearning4j/nd4s/issues/52#issuecomment-137957601","issue_url":"https://api.github.com/repos/deeplearning4j/nd4s/issues/52","id":137957601,"user":{"login":"taisukeoe","id":1506707,"avatar_url":"https://avatars.githubusercontent.com/u/1506707?v=3","gravatar_id":"","url":"https://api.github.com/users/taisukeoe","html_url":"https://github.com/taisukeoe","followers_url":"https://api.github.com/users/taisukeoe/followers","following_url":"https://api.github.com/users/taisukeoe/following{/other_user}","gists_url":"https://api.github.com/users/taisukeoe/gists{/gist_id}","starred_url":"https://api.github.com/users/taisukeoe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/taisukeoe/subscriptions","organizations_url":"https://api.github.com/users/taisukeoe/orgs","repos_url":"https://api.github.com/users/taisukeoe/repos","events_url":"https://api.github.com/users/taisukeoe/events{/privacy}","received_events_url":"https://api.github.com/users/taisukeoe/received_events","type":"User","site_admin":false},"created_at":"2015-09-05T13:48:47Z","updated_at":"2015-09-05T13:48:47Z","body":"Hi @rahulpalamuttam , What do you think about it?\r\n"}}