Skip to content

Add host_device_ptr<T>::slice method - #395

Merged
adayton1 merged 3 commits into
developfrom
feature/host_device_ptr_slice
Aug 25, 2026
Merged

Add host_device_ptr<T>::slice method#395
adayton1 merged 3 commits into
developfrom
feature/host_device_ptr_slice

Conversation

@adayton1

@adayton1 adayton1 commented Aug 25, 2026

Copy link
Copy Markdown
Member
  • Slicing a care::host_device_ptr<T> should return a care::host_device_ptr<T>. Previously, the chai::ManagedArray<T>::slice function was being called and returning a chai::ManagedArray<T>. That made it difficult to pass slices to care algorithms.
  • Moved assignment operator right after constructors

@adayton1
adayton1 merged commit 25bc33b into develop Aug 25, 2026
32 checks passed
@adayton1
adayton1 deleted the feature/host_device_ptr_slice branch August 25, 2026 23:01
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.

3 participants