{"action":"created","issue":{"url":"https://api.github.com/repos/kokkos/kokkos/issues/134","labels_url":"https://api.github.com/repos/kokkos/kokkos/issues/134/labels{/name}","comments_url":"https://api.github.com/repos/kokkos/kokkos/issues/134/comments","events_url":"https://api.github.com/repos/kokkos/kokkos/issues/134/events","html_url":"https://github.com/kokkos/kokkos/issues/134","id":118319251,"number":134,"title":"Add variant of subview that lets users add traits","user":{"login":"mhoemmen","id":926747,"avatar_url":"https://avatars.githubusercontent.com/u/926747?v=3","gravatar_id":"","url":"https://api.github.com/users/mhoemmen","html_url":"https://github.com/mhoemmen","followers_url":"https://api.github.com/users/mhoemmen/followers","following_url":"https://api.github.com/users/mhoemmen/following{/other_user}","gists_url":"https://api.github.com/users/mhoemmen/gists{/gist_id}","starred_url":"https://api.github.com/users/mhoemmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhoemmen/subscriptions","organizations_url":"https://api.github.com/users/mhoemmen/orgs","repos_url":"https://api.github.com/users/mhoemmen/repos","events_url":"https://api.github.com/users/mhoemmen/events{/privacy}","received_events_url":"https://api.github.com/users/mhoemmen/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/kokkos/kokkos/labels/Feature%20Request","name":"Feature Request","color":"5319e7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-11-23T04:35:06Z","updated_at":"2015-11-23T18:05:38Z","closed_at":null,"body":"Add Kokkos::subview variant that lets users add traits (e.g., Atomic, MemoryUnmanaged, RandomRead) to the resulting type.  This is particularly useful for creating an unmanaged subview of a managed View, since it would avoid the intermediate step of assigning from a managed to an unmanaged View (before taking the subview).  It might look something like this:\r\n```\r\nauto X_unmanaged = Kokkos::subview_with_traits<MemoryUnmanaged> (X, std::make_pair (3, 10));\r\n```\r\nThe advantage is that users would not need to know the exact return type (which is tricky given different layouts and slices!), yet could still add traits to it."},"comment":{"url":"https://api.github.com/repos/kokkos/kokkos/issues/comments/159014284","html_url":"https://github.com/kokkos/kokkos/issues/134#issuecomment-159014284","issue_url":"https://api.github.com/repos/kokkos/kokkos/issues/134","id":159014284,"user":{"login":"hcedwar","id":7605869,"avatar_url":"https://avatars.githubusercontent.com/u/7605869?v=3","gravatar_id":"","url":"https://api.github.com/users/hcedwar","html_url":"https://github.com/hcedwar","followers_url":"https://api.github.com/users/hcedwar/followers","following_url":"https://api.github.com/users/hcedwar/following{/other_user}","gists_url":"https://api.github.com/users/hcedwar/gists{/gist_id}","starred_url":"https://api.github.com/users/hcedwar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hcedwar/subscriptions","organizations_url":"https://api.github.com/users/hcedwar/orgs","repos_url":"https://api.github.com/users/hcedwar/repos","events_url":"https://api.github.com/users/hcedwar/events{/privacy}","received_events_url":"https://api.github.com/users/hcedwar/received_events","type":"User","site_admin":false},"created_at":"2015-11-23T18:05:38Z","updated_at":"2015-11-23T18:05:38Z","body":"The refactored View will allow *compatible* subview construction as\r\n view_type y( ... );  \r\n subview_type x( y , ...subview_args... );\r\n"}}