{"action":"created","issue":{"url":"https://api.github.com/repos/stan-dev/stan/issues/1449","labels_url":"https://api.github.com/repos/stan-dev/stan/issues/1449/labels{/name}","comments_url":"https://api.github.com/repos/stan-dev/stan/issues/1449/comments","events_url":"https://api.github.com/repos/stan-dev/stan/issues/1449/events","html_url":"https://github.com/stan-dev/stan/issues/1449","id":76109846,"number":1449,"title":"implement vector view map","user":{"login":"rtrangucci","id":3925639,"avatar_url":"https://avatars.githubusercontent.com/u/3925639?v=3","gravatar_id":"","url":"https://api.github.com/users/rtrangucci","html_url":"https://github.com/rtrangucci","followers_url":"https://api.github.com/users/rtrangucci/followers","following_url":"https://api.github.com/users/rtrangucci/following{/other_user}","gists_url":"https://api.github.com/users/rtrangucci/gists{/gist_id}","starred_url":"https://api.github.com/users/rtrangucci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rtrangucci/subscriptions","organizations_url":"https://api.github.com/users/rtrangucci/orgs","repos_url":"https://api.github.com/users/rtrangucci/repos","events_url":"https://api.github.com/users/rtrangucci/events{/privacy}","received_events_url":"https://api.github.com/users/rtrangucci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-05-13T20:18:14Z","updated_at":"2015-05-14T22:04:02Z","closed_at":null,"body":"interface should look like a generalized version of vector view, as suggested by @bob-carpenter :\r\n\r\ntemplate <typename Container, typename View>\r\nclass vector_view_map {\r\n};\r\n\r\nwhere user specifies the container type and the view type, and passes in a pointer of type View*. The class implements operator[](int i) and stores a pointer to an array of type View.\r\n"},"comment":{"url":"https://api.github.com/repos/stan-dev/stan/issues/comments/102182380","html_url":"https://github.com/stan-dev/stan/issues/1449#issuecomment-102182380","issue_url":"https://api.github.com/repos/stan-dev/stan/issues/1449","id":102182380,"user":{"login":"bob-carpenter","id":3383807,"avatar_url":"https://avatars.githubusercontent.com/u/3383807?v=3","gravatar_id":"","url":"https://api.github.com/users/bob-carpenter","html_url":"https://github.com/bob-carpenter","followers_url":"https://api.github.com/users/bob-carpenter/followers","following_url":"https://api.github.com/users/bob-carpenter/following{/other_user}","gists_url":"https://api.github.com/users/bob-carpenter/gists{/gist_id}","starred_url":"https://api.github.com/users/bob-carpenter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bob-carpenter/subscriptions","organizations_url":"https://api.github.com/users/bob-carpenter/orgs","repos_url":"https://api.github.com/users/bob-carpenter/repos","events_url":"https://api.github.com/users/bob-carpenter/events{/privacy}","received_events_url":"https://api.github.com/users/bob-carpenter/received_events","type":"User","site_admin":false},"created_at":"2015-05-14T22:04:02Z","updated_at":"2015-05-14T22:04:02Z","body":"sequence_view or seq_view might be better given\nthat you're explicitly providing a view that\nbehaves like a sequence.\n\nBut if you're envisioning something more general,\ncontainer_view would work. \n\nAs a general rule, try to stay away from vague\nqualifiers like \"structured\" or redundant ones\nlike \"object\".\n\n- Bob\n\n> On May 14, 2015, at 5:10 PM, Michael Betancourt <notifications@github.com> wrote:\n> \n> container_view?\n> \n> On May 14, 2015, at 9:59 PM, Rob Trangucci <notifications@github.com> wrote:\n> \n> > @bob-carpenter @syclik what do you guys think about the name \"array_view\" for these objects? maybe \"structured_array_view\"? I don't like the \"vector_view_map\" but I'm not sure what a better name would be.\n> > \n> > —\n> > Reply to this email directly or view it on GitHub.\n> > \n> \n> —\n> Reply to this email directly or view it on GitHub.\n> \n\n"}}