Sparse Utility Operations

Various utility operations for creating and working with sparse structures.

Topics

Sparse Utility Operations

func sparse_get_vector_nonzero_count_double(sparse_dimension, UnsafePointer<Double>!, sparse_stride) -> Int

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

func sparse_get_vector_nonzero_count_float(sparse_dimension, UnsafePointer<Float>!, sparse_stride) -> Int

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

func sparse_unpack_vector_double(sparse_dimension, sparse_dimension, Bool, UnsafePointer<Double>!, UnsafePointer<sparse_index>!, UnsafeMutablePointer<Double>!, sparse_stride)

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

func sparse_unpack_vector_float(sparse_dimension, sparse_dimension, Bool, UnsafePointer<Float>!, UnsafePointer<sparse_index>!, UnsafeMutablePointer<Float>!, sparse_stride)

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

typealias sparse_dimension

The dimension type.

typealias sparse_index

The index type.

typealias 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.