Generic Types Reference

The NVPL Sparse generic type references are described in this section.

nvpl_sparse_format_t

This type indicates the format of the sparse matrix. See NVPL Sparse Storage Format for their description.

Value

Meaning

NVPL_SPARSE_FORMAT_COO

The matrix is stored in Coordinate (COO) format organized in Structure of Arrays (SoA) layout

NVPL_SPARSE_FORMAT_CSR

The matrix is stored in Compressed Sparse Row (CSR) format

NVPL_SPARSE_FORMAT_CSC

The matrix is stored in Compressed Sparse Column (CSC) format

NVPL_SPARSE_FORMAT_SLICED_ELL

The matrix is stored in Sliced-Ellpack (Sliced-ELL) format


nvpl_sparse_order_t

This type indicates the memory layout of a dense matrix.

Value

Meaning

NVPL_SPARSE_ORDER_ROW

The matrix is stored in row-major

NVPL_SPARSE_ORDER_COL

The matrix is stored in column-major


nvpl_sparse_index_type_t

This type indicates the index type for representing the sparse matrix indices.

Value

Meaning

NVPL_SPARSE_INDEX_32I

32-bit signed integer [1, 2^31 - 1]

NVPL_SPARSE_INDEX_64I

64-bit signed integer [1, 2^63 - 1]