Sparse Utility Operations

Various utility operations for creating and working with sparse structures.

Topics

Sparse Utility Operations

sparse_get_vector_nonzero_count_double

Returns the number of nonzero values in the double-precision dense vector x.

sparse_get_vector_nonzero_count_float

Returns the number of nonzero values in the single-precision dense vector x.

sparse_pack_vector_double

Packs nonzero values from a double-precision dense vector to a destination array.

sparse_pack_vector_float

Packs nonzero values from a single-precision dense vector to a destination array.

sparse_unpack_vector_double

Extracts elements from the sparse vector x into the corresponding location in the dense vector y, with both vectors containing double-precision values.

sparse_unpack_vector_float

Extracts elements from the sparse vector x into the corresponding location in the dense vector y, with both vectors containing single-precision values.

Supporting Types

sparse_dimension

The dimension type.

sparse_index

The index type.

sparse_stride

The stride type.

See Also

Sparse Computation

Matrix and Vector Operations

Perform computations with matrices and vectors.

Pointwise Matrix Operations

Create, insert values into, and extract values from a pointwise sparse matrix.

Blockwise Matrix Operations

Create, insert values into, and extract values from a blockwise sparse matrix.

General Sparse Matrix Management Operations

Operations to manage and work with sparse matrix properties.