Function

sparse_get_vector_nonzero_count_float(_:_:_:)

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

Declaration

func sparse_get_vector_nonzero_count_float(_ N: sparse_dimension, _ x: UnsafePointer<Float>!, _ 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_double(sparse_dimension, UnsafePointer<Double>!, sparse_stride) -> Int

Returns the number of nonzero values in the double-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.

Beta Software

This documentation contains preliminary information about an API or technology in development. This information is subject to change, and software implemented according to this documentation should be tested with final operating system software.

Learn more about using Apple's beta software