diff --git a/cpp/include/raft/mdarray.hpp b/cpp/include/raft/mdarray.hpp index f92a0e5e59..7c3a1a02fa 100644 --- a/cpp/include/raft/mdarray.hpp +++ b/cpp/include/raft/mdarray.hpp @@ -482,7 +482,7 @@ template auto make_host_vector_view(ElementType* ptr, size_t n) { detail::vector_extent extents{n}; - return host_matrix_view{ptr, extents}; + return host_vector_view{ptr, extents}; } /** @@ -496,7 +496,7 @@ template auto make_device_vector_view(ElementType* ptr, size_t n) { detail::vector_extent extents{n}; - return device_matrix_view{ptr, extents}; + return device_vector_view{ptr, extents}; } /**