Function

sparse_get_vector_nonzero_count_double(_:_:_:)

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

Declaration

func sparse_get_vector_nonzero_count_double(_ N: sparse_dimension, _ x: UnsafePointer<Double>!, _ incx: sparse_stride) -> Int

Parameters

N

The number of elements in the dense vector x.

x

Pointer to the vector x.

incx

Increment between valid values in the dense vector x. Negative strides are supported.

Return Value

The count of the nonzero values in the vector x.

See Also

Sparse Utility Operations

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.