{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/GSL/issues/269","repository_url":"https://api.github.com/repos/Microsoft/GSL","labels_url":"https://api.github.com/repos/Microsoft/GSL/issues/269/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/GSL/issues/269/comments","events_url":"https://api.github.com/repos/Microsoft/GSL/issues/269/events","html_url":"https://github.com/Microsoft/GSL/issues/269","id":134569804,"number":269,"title":"array_view use case","user":{"login":"gnzlbg","id":904614,"avatar_url":"https://avatars.githubusercontent.com/u/904614?v=3","gravatar_id":"","url":"https://api.github.com/users/gnzlbg","html_url":"https://github.com/gnzlbg","followers_url":"https://api.github.com/users/gnzlbg/followers","following_url":"https://api.github.com/users/gnzlbg/following{/other_user}","gists_url":"https://api.github.com/users/gnzlbg/gists{/gist_id}","starred_url":"https://api.github.com/users/gnzlbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnzlbg/subscriptions","organizations_url":"https://api.github.com/users/gnzlbg/orgs","repos_url":"https://api.github.com/users/gnzlbg/repos","events_url":"https://api.github.com/users/gnzlbg/events{/privacy}","received_events_url":"https://api.github.com/users/gnzlbg/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/GSL/labels/resolved","name":"resolved","color":"009800"}],"state":"closed","locked":false,"assignee":{"login":"neilmacintosh","id":10985489,"avatar_url":"https://avatars.githubusercontent.com/u/10985489?v=3","gravatar_id":"","url":"https://api.github.com/users/neilmacintosh","html_url":"https://github.com/neilmacintosh","followers_url":"https://api.github.com/users/neilmacintosh/followers","following_url":"https://api.github.com/users/neilmacintosh/following{/other_user}","gists_url":"https://api.github.com/users/neilmacintosh/gists{/gist_id}","starred_url":"https://api.github.com/users/neilmacintosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilmacintosh/subscriptions","organizations_url":"https://api.github.com/users/neilmacintosh/orgs","repos_url":"https://api.github.com/users/neilmacintosh/repos","events_url":"https://api.github.com/users/neilmacintosh/events{/privacy}","received_events_url":"https://api.github.com/users/neilmacintosh/received_events","type":"User","site_admin":false},"assignees":[{"login":"neilmacintosh","id":10985489,"avatar_url":"https://avatars.githubusercontent.com/u/10985489?v=3","gravatar_id":"","url":"https://api.github.com/users/neilmacintosh","html_url":"https://github.com/neilmacintosh","followers_url":"https://api.github.com/users/neilmacintosh/followers","following_url":"https://api.github.com/users/neilmacintosh/following{/other_user}","gists_url":"https://api.github.com/users/neilmacintosh/gists{/gist_id}","starred_url":"https://api.github.com/users/neilmacintosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/neilmacintosh/subscriptions","organizations_url":"https://api.github.com/users/neilmacintosh/orgs","repos_url":"https://api.github.com/users/neilmacintosh/repos","events_url":"https://api.github.com/users/neilmacintosh/events{/privacy}","received_events_url":"https://api.github.com/users/neilmacintosh/received_events","type":"User","site_admin":false}],"milestone":null,"comments":2,"created_at":"2016-02-18T12:34:20Z","updated_at":"2016-08-03T08:53:49Z","closed_at":"2016-08-03T01:26:06Z","body":"I have a 1d array in memory and I would like to view it as a \"rectangle/cube\" of Rank R (R=1,2,3,...). \r\n\r\nI would like to iterate over a sub-tile of this rectangle. This sub-tile can either be spanned by two coordinates of rank R and a stride of rank R, or from the first element of the sub-tile, the sub-tile lengths (of rank R), and a stride of rank R. \r\n\r\nIn some cases I know all of the sub-tile lengths and strides at compile-time and would like to use these as template parameters. In some cases I only know some of them and would like to specify these at compile time (e.g. as template parameters), but some I only know at run-time (and would like to specify them using something like Eigen3's `dynamic` trick.\r\n\r\nI am trying to figure out if I can do all of these with `array_view` but it seems that the library and the paper have gone a bit out of sync (array view is now called span?). Is it possible to do all this with array view, and if so, are there anywhere examples of how to do it?"},"comment":{"url":"https://api.github.com/repos/Microsoft/GSL/issues/comments/237181148","html_url":"https://github.com/Microsoft/GSL/issues/269#issuecomment-237181148","issue_url":"https://api.github.com/repos/Microsoft/GSL/issues/269","id":237181148,"user":{"login":"gnzlbg","id":904614,"avatar_url":"https://avatars.githubusercontent.com/u/904614?v=3","gravatar_id":"","url":"https://api.github.com/users/gnzlbg","html_url":"https://github.com/gnzlbg","followers_url":"https://api.github.com/users/gnzlbg/followers","following_url":"https://api.github.com/users/gnzlbg/following{/other_user}","gists_url":"https://api.github.com/users/gnzlbg/gists{/gist_id}","starred_url":"https://api.github.com/users/gnzlbg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gnzlbg/subscriptions","organizations_url":"https://api.github.com/users/gnzlbg/orgs","repos_url":"https://api.github.com/users/gnzlbg/repos","events_url":"https://api.github.com/users/gnzlbg/events{/privacy}","received_events_url":"https://api.github.com/users/gnzlbg/received_events","type":"User","site_admin":false},"created_at":"2016-08-03T08:53:49Z","updated_at":"2016-08-03T08:53:49Z","body":"Thanks @neilmacintosh ! I'll check that out!\r\n\r\nI ended up implementing a `tensor_index` generator in range-v3 and just using that as view in case you are interested: https://github.com/ericniebler/range-v3/issues/281"}}
{"actor":{"display_login":"gnzlbg"}}