{"action":"created","issue":{"url":"https://api.github.com/repos/scalanlp/breeze/issues/359","labels_url":"https://api.github.com/repos/scalanlp/breeze/issues/359/labels{/name}","comments_url":"https://api.github.com/repos/scalanlp/breeze/issues/359/comments","events_url":"https://api.github.com/repos/scalanlp/breeze/issues/359/events","html_url":"https://github.com/scalanlp/breeze/issues/359","id":56158981,"number":359,"title":"Mapping through rows/columns in DenseMatrix","user":{"login":"fayimora","id":648684,"avatar_url":"https://avatars.githubusercontent.com/u/648684?v=3","gravatar_id":"","url":"https://api.github.com/users/fayimora","html_url":"https://github.com/fayimora","followers_url":"https://api.github.com/users/fayimora/followers","following_url":"https://api.github.com/users/fayimora/following{/other_user}","gists_url":"https://api.github.com/users/fayimora/gists{/gist_id}","starred_url":"https://api.github.com/users/fayimora/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fayimora/subscriptions","organizations_url":"https://api.github.com/users/fayimora/orgs","repos_url":"https://api.github.com/users/fayimora/repos","events_url":"https://api.github.com/users/fayimora/events{/privacy}","received_events_url":"https://api.github.com/users/fayimora/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-02-01T10:15:28Z","updated_at":"2015-02-13T05:08:50Z","closed_at":null,"body":"I've checked the API and examples but couldn't find a way to map over rows/columns in a DenseMatrix. Is this intentional or just something that isn't implemented yet?\r\n\r\nI was expecting an easy way to map through the rows or columns and get a `Transpose[DenseVector]` or `DenseVector` respectively in each iteration."},"comment":{"url":"https://api.github.com/repos/scalanlp/breeze/issues/comments/74206078","html_url":"https://github.com/scalanlp/breeze/issues/359#issuecomment-74206078","issue_url":"https://api.github.com/repos/scalanlp/breeze/issues/359","id":74206078,"user":{"login":"dlwh","id":9633,"avatar_url":"https://avatars.githubusercontent.com/u/9633?v=3","gravatar_id":"","url":"https://api.github.com/users/dlwh","html_url":"https://github.com/dlwh","followers_url":"https://api.github.com/users/dlwh/followers","following_url":"https://api.github.com/users/dlwh/following{/other_user}","gists_url":"https://api.github.com/users/dlwh/gists{/gist_id}","starred_url":"https://api.github.com/users/dlwh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dlwh/subscriptions","organizations_url":"https://api.github.com/users/dlwh/orgs","repos_url":"https://api.github.com/users/dlwh/repos","events_url":"https://api.github.com/users/dlwh/events{/privacy}","received_events_url":"https://api.github.com/users/dlwh/received_events","type":"User","site_admin":false},"created_at":"2015-02-13T05:08:50Z","updated_at":"2015-02-13T05:08:50Z","body":"Yeah, I'm not sure it makes sense to support the full suite of Scala\ncollection operations, though I could be convinced. I do intend to add\nscan, at the minimum.\n\n(And DenseVector.toArray is a linear time operation. Probably a very fast\none if you're using a unit stride, but an arraycopy nonetheless.\n\nOn Sat, Feb 7, 2015 at 3:06 AM, Fayimora Femi-Balogun <\nnotifications@github.com> wrote:\n\n> Thanks @gabeos <https://github.com/gabeos> I agree those operations are\n> not really Linear Algebra operations and knowing that converting Array to\n> Scala Vector and vice versa takes constant time is great! I'm ok with just\n> converting to an array in other to perform those operations.\n>\n> —\n> Reply to this email directly or view it on GitHub\n> <https://github.com/scalanlp/breeze/issues/359#issuecomment-73359930>.\n>\n"}}