{"action":"created","issue":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/152","labels_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/152/labels{/name}","comments_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/152/comments","events_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/152/events","html_url":"https://github.com/deeplearning4j/nd4j/issues/152","id":86570469,"number":152,"title":"Error in row wise subtraction?","user":{"login":"hellrich","id":11443632,"avatar_url":"https://avatars.githubusercontent.com/u/11443632?v=3","gravatar_id":"","url":"https://api.github.com/users/hellrich","html_url":"https://github.com/hellrich","followers_url":"https://api.github.com/users/hellrich/followers","following_url":"https://api.github.com/users/hellrich/following{/other_user}","gists_url":"https://api.github.com/users/hellrich/gists{/gist_id}","starred_url":"https://api.github.com/users/hellrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hellrich/subscriptions","organizations_url":"https://api.github.com/users/hellrich/orgs","repos_url":"https://api.github.com/users/hellrich/repos","events_url":"https://api.github.com/users/hellrich/events{/privacy}","received_events_url":"https://api.github.com/users/hellrich/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-09T11:50:01Z","updated_at":"2015-06-11T02:03:55Z","closed_at":null,"body":"There seems to be an error in row wise vector subtraction.\r\nGiven the following operation:\r\n[2.0, 2.0]\r\n[2.0, 2.0]\r\n[2.0, 2.0] - [0.0, 1.0]\r\n\r\nOne would expect the result to be:\r\n[2.0, 1.0]\r\n[2.0, 1.0]\r\n[2.0, 1.0]\r\n \r\nYet using INDArray.subRowVector and the jblas backend it is:\r\n[2.0, 1.0]\r\n[1.0, 2.0]\r\n[1.0, 2.0]\r\n\r\nThe error does not occur during addition. I looks like the sum of all vector entries is being subtracted from the first entry in every row besides the first, e.g. subtracting [-1,1] leaves every row after the first unchanged."},"comment":{"url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/comments/110968242","html_url":"https://github.com/deeplearning4j/nd4j/issues/152#issuecomment-110968242","issue_url":"https://api.github.com/repos/deeplearning4j/nd4j/issues/152","id":110968242,"user":{"login":"agibsonccc","id":1144306,"avatar_url":"https://avatars.githubusercontent.com/u/1144306?v=3","gravatar_id":"","url":"https://api.github.com/users/agibsonccc","html_url":"https://github.com/agibsonccc","followers_url":"https://api.github.com/users/agibsonccc/followers","following_url":"https://api.github.com/users/agibsonccc/following{/other_user}","gists_url":"https://api.github.com/users/agibsonccc/gists{/gist_id}","starred_url":"https://api.github.com/users/agibsonccc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/agibsonccc/subscriptions","organizations_url":"https://api.github.com/users/agibsonccc/orgs","repos_url":"https://api.github.com/users/agibsonccc/repos","events_url":"https://api.github.com/users/agibsonccc/events{/privacy}","received_events_url":"https://api.github.com/users/agibsonccc/received_events","type":"User","site_admin":false},"created_at":"2015-06-11T02:03:55Z","updated_at":"2015-06-11T02:03:55Z","body":"Thanks this is really helpful. This should be an easy fix. I've just merged the new blas/databuffer interactions which should allow for condensing some of these operations."}}