Skip to content

Commit

Permalink
Fix make_device_vector_view (#595)
Browse files Browse the repository at this point in the history
Small typo fix.

Authors:
  - Micka (https://github.com/lowener)

Approvers:
  - Corey J. Nolet (https://github.com/cjnolet)
  - Jiaming Yuan (https://github.com/trivialfis)

URL: #595
  • Loading branch information
lowener authored Mar 28, 2022
1 parent ac6fde4 commit 6aa9ac8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpp/include/raft/mdarray.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ template <typename ElementType>
auto make_host_vector_view(ElementType* ptr, size_t n)
{
detail::vector_extent extents{n};
return host_matrix_view<ElementType>{ptr, extents};
return host_vector_view<ElementType>{ptr, extents};
}

/**
Expand All @@ -496,7 +496,7 @@ template <typename ElementType>
auto make_device_vector_view(ElementType* ptr, size_t n)
{
detail::vector_extent extents{n};
return device_matrix_view<ElementType>{ptr, extents};
return device_vector_view<ElementType>{ptr, extents};
}

/**
Expand Down

0 comments on commit 6aa9ac8

Please sign in to comment.