Function

sparse_get_matrix_nonzero_count_for_column(_:_:)

Returns the number of nonzero values in a specified column of a matrix.

Declaration

func sparse_get_matrix_nonzero_count_for_column(_ A: UnsafeMutableRawPointer!, _ j: sparse_index) -> Int

Parameters

A

The sparse matrix object.

j

The zero based index of the row to query.

Return Value

The number of nonzero values in the specified column of the matrix. If j is out of bounds of the matrix, 0 is returned.

See Also

General Sparse Matrix Management Operations

func sparse_commit(UnsafeMutableRawPointer!) -> sparse_status

Forces any values recently added to the matrix to be put into the internal sparse storage format.

func sparse_matrix_destroy(UnsafeMutableRawPointer!) -> sparse_status

Releases any memory associated with the matrix object.

func sparse_get_matrix_nonzero_count(UnsafeMutableRawPointer!) -> Int

Returns the number of nonzero values of a matrix.

func sparse_get_matrix_nonzero_count_for_row(UnsafeMutableRawPointer!, sparse_index) -> Int

Returns the number of nonzero values in a specified row of a matrix.