Dense array views describe memory owned somewhere else. They carry the pointer, shape, layout, memory-space accessor, and constness needed by NVIDIA cuVS C++ APIs without allocating or freeing data.
Source header: raft/core/mdspan.hpp
Generic multi-dimensional non-owning view.
Returns the pointer held by the non-owning view.
Returns
element_type*
Returns the extents object that describes the view shape.
Returns
extents_type
Returns the size of one rank of the view.
Parameters
Returns
index_type
Returns the stride for one rank of a strided view.
Parameters
Returns
index_type
Returns the total number of elements described by the view.
Returns
size_type
Reports whether the view describes zero elements.
Returns
bool
Indexes into the view with one coordinate per rank.
Parameters
Returns
reference
Source header: raft/core/device_mdspan.hpp
Non-owning view over device-accessible memory.
Source header: raft/core/host_mdspan.hpp
Non-owning view over host memory.
Source header: raft/core/device_mdspan.hpp
Common device view alias for matrix arguments.
Source header: raft/core/device_mdspan.hpp
Common device view alias for vector arguments.
Source header: raft/core/device_mdspan.hpp
Common device view alias for scalar arguments.
Source header: raft/core/host_mdspan.hpp
Common host view alias for matrix arguments.
Source header: raft/core/host_mdspan.hpp
Common host view alias for vector arguments.
Source header: raft/core/host_mdspan.hpp
Common host view alias for scalar arguments.
Source header: raft/core/span.hpp
Lightweight one-dimensional non-owning view. NVIDIA cuVS public APIs usually prefer device_vector_view and host_vector_view for one-dimensional buffers.
Returns the pointer held by the span.
Returns
element_type*
Returns the number of elements in the span.
Returns
size_type
Reports whether the span contains zero elements.
Returns
bool
Indexes into the span.
Parameters
Returns
reference
Returns an iterator to the first element.
Returns
iterator
Returns an iterator one past the last element.
Returns
iterator