Function

sparse_get_vector_nonzero_count_float

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

Declaration

long sparse_get_vector_nonzero_count_float(sparse_dimension N, const float *restrict x, sparse_stride incx);

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

sparse_get_vector_nonzero_count_double

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

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