Skip to content

About shared_ptr like behaviour of Views - #206

Merged
crtrott merged 1 commit into
kokkos:mainfrom
science-enthusiast:view-ref-semantics
Oct 22, 2026
Merged

crtrott merged 1 commit into
kokkos:mainfrom
science-enthusiast:view-ref-semantics

Conversation

@science-enthusiast

Copy link
Copy Markdown
Contributor

Addresses:

Use "reference semantics" in place of shallow / deep copy that may not be widely known. Could say "Views have reference semantics and assigning them does not copy the data they point to".

From #166

It looks like shared ownership semantics is better in this context than reference semantics.

Signed-off-by: Hariprasad KANNAN <hkannan@gmail.com>
@crtrott
crtrott merged commit c410405 into kokkos:main Oct 22, 2026
7 checks passed
@science-enthusiast
science-enthusiast deleted the view-ref-semantics branch October 23, 2026 09:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants