{"action":"created","issue":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/326","labels_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/326/labels{/name}","comments_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/326/comments","events_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/326/events","html_url":"https://github.com/arrayfire/arrayfire/issues/326","id":54231529,"number":326,"title":"Using GFOR with col operator","user":{"login":"Kerkil","id":2823773,"avatar_url":"https://avatars.githubusercontent.com/u/2823773?v=3","gravatar_id":"","url":"https://api.github.com/users/Kerkil","html_url":"https://github.com/Kerkil","followers_url":"https://api.github.com/users/Kerkil/followers","following_url":"https://api.github.com/users/Kerkil/following{/other_user}","gists_url":"https://api.github.com/users/Kerkil/gists{/gist_id}","starred_url":"https://api.github.com/users/Kerkil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Kerkil/subscriptions","organizations_url":"https://api.github.com/users/Kerkil/orgs","repos_url":"https://api.github.com/users/Kerkil/repos","events_url":"https://api.github.com/users/Kerkil/events{/privacy}","received_events_url":"https://api.github.com/users/Kerkil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/arrayfire/arrayfire/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-13T18:47:51Z","updated_at":"2015-01-13T19:28:21Z","closed_at":null,"body":"Looks like `A.col(i)` takes integer as an input. Is there an alternative way to assign an `af` vector to columns of a matrix in `gfor`? Can I implement something like the following?\r\n\r\n```\r\n    af::array A(N, M, f32);\r\n    gfor (af::seq i, M)\r\n    {        \r\n        A.col(i) = af::pow(x, i);        \r\n    }\r\n```"},"comment":{"url":"https://api.github.com/repos/arrayfire/arrayfire/issues/comments/69803610","html_url":"https://github.com/arrayfire/arrayfire/issues/326#issuecomment-69803610","issue_url":"https://api.github.com/repos/arrayfire/arrayfire/issues/326","id":69803610,"user":{"login":"pavanky","id":364829,"avatar_url":"https://avatars.githubusercontent.com/u/364829?v=3","gravatar_id":"","url":"https://api.github.com/users/pavanky","html_url":"https://github.com/pavanky","followers_url":"https://api.github.com/users/pavanky/followers","following_url":"https://api.github.com/users/pavanky/following{/other_user}","gists_url":"https://api.github.com/users/pavanky/gists{/gist_id}","starred_url":"https://api.github.com/users/pavanky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavanky/subscriptions","organizations_url":"https://api.github.com/users/pavanky/orgs","repos_url":"https://api.github.com/users/pavanky/repos","events_url":"https://api.github.com/users/pavanky/events{/privacy}","received_events_url":"https://api.github.com/users/pavanky/received_events","type":"User","site_admin":false},"created_at":"2015-01-13T19:28:21Z","updated_at":"2015-01-13T19:28:21Z","body":"Alternatively you can do the following:\r\n\r\n```\r\n af::array A(N, M, f32);\r\n    gfor (af::seq ii, M)\r\n    {        \r\n        A(span, ii) = af::pow(x, array(ii).T());        \r\n    }\r\n```"}}