For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
GitHubCUDA-X
    • Home
    • Installation
  • Getting Started
    • Introduction
    • Integrations
    • Use-cases
  • User Guide
    • API Guide
    • Benchmarking Guide
    • Compatibility
    • Integration Patterns
    • Advanced Topics
    • References
  • Developer Guide
    • Coding Guidelines
    • ABI Stability
    • Link-time Optimization
    • Contributing
  • API Reference
    • C API Documentation
    • Cpp API Documentation
      • Cluster Agglomerative
      • Cluster Kmeans
      • Cluster Spectral
      • Common Types
        • Execution Resources
        • Dense Array Views
        • Dense View Factories
        • Owning Dense Arrays
        • Owning Array Factories
        • Layouts and Extents
        • Sparse Array Types
        • Copy, Serialization, and Utility APIs
        • Errors and Logging
      • Distance Distance
      • Distance Grammian
      • Neighbors All Neighbors
      • Neighbors Ball Cover
      • Neighbors Brute Force
      • Neighbors Cagra
      • Neighbors Common
      • Neighbors Dynamic Batching
      • Neighbors Epsilon Neighborhood
      • Neighbors HNSW
      • Neighbors Composite Index
      • Neighbors IVF Flat
      • Neighbors IVF PQ
      • Neighbors NN Descent
      • Neighbors Refine
      • Neighbors Scann
      • Neighbors Tiered Index
      • Neighbors Vamana
      • Preprocessing Quantize Binary
      • Preprocessing PCA
      • Preprocessing Quantize PQ
      • Preprocessing Quantize Scalar
      • Preprocessing Spectral Embedding
      • Selection Select K
      • Stats Silhouette Score
      • Stats Trustworthiness Score
      • Util Cutlass Utils
      • Util File Io
    • Python API Documentation
    • Java API Documentation
    • Rust API Documentation
    • Go API Documentation
NVIDIANVIDIA
Developer-friendly docs for your API
Privacy Policy | Manage My Privacy | Do Not Sell or Share My Data | Terms of Service | Accessibility | Corporate Policies | Product Security | Contact

Copyright © 2026, NVIDIA Corporation.

LogoLogocuVS
GitHubCUDA-X
On this page
  • raft::row_major
  • raft::col_major
  • raft::layout_c_contiguous
  • raft::layout_f_contiguous
  • raft::layout_stride
  • raft::scalar_extent
  • raft::matrix_extent
  • raft::vector_extent
  • raft::extents
  • raft::dynamic_extent
API ReferenceCpp API DocumentationCommon Types

Layouts and Extents

||View as Markdown|
Previous

Owning Array Factories

Next

Sparse Array Types

RAFT layout and extent types make array shape and memory layout explicit in NVIDIA cuVS public signatures.

raft::row_major

Source header: raft/core/mdspan_types.hpp

Matrix layout tag for row-major storage.

1using cuda::std::layout_right;
2using row_major = layout_right;

raft::col_major

Source header: raft/core/mdspan_types.hpp

Matrix layout tag for column-major storage.

1using cuda::std::layout_left;
2using col_major = layout_left;

raft::layout_c_contiguous

Source header: raft/core/mdspan_types.hpp

Layout tag for C-contiguous memory.

1using cuda::std::layout_right;
2using layout_c_contiguous = layout_right;

raft::layout_f_contiguous

Source header: raft/core/mdspan_types.hpp

Layout tag for Fortran-contiguous memory.

1using cuda::std::layout_left;
2using layout_f_contiguous = layout_left;

raft::layout_stride

Source header: raft/core/mdspan_types.hpp

Layout tag for strided memory.

1using cuda::std::layout_stride;

raft::scalar_extent

Source header: raft/core/mdspan_types.hpp

Convenience extent alias for zero-dimensional scalar values.

1template <typename IndexType>
2using scalar_extent = cuda::std::extents<IndexType, 1>;

raft::matrix_extent

Source header: raft/core/mdspan_types.hpp

Convenience extent alias for two-dimensional matrices.

1template <typename IndexType>
2using matrix_extent = cuda::std::extents<IndexType,
3 raft::dynamic_extent,
4 raft::dynamic_extent>;

raft::vector_extent

Source header: raft/core/mdspan_types.hpp

Convenience extent alias for one-dimensional vectors.

1template <typename IndexType>
2using vector_extent = cuda::std::extents<IndexType,
3 raft::dynamic_extent>;

raft::extents

Source header: raft/core/mdspan_types.hpp

Generic extent descriptor for static and dynamic dimensions.

1using cuda::std::extents;

raft::dynamic_extent

Source header: raft/core/mdspan_types.hpp

Sentinel used for dimensions whose size is known at runtime.

1using cuda::std::dynamic_extent;