Contents

sparse_get_matrix_nonzero_count_for_row(_:_:)

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

Declaration

func sparse_get_matrix_nonzero_count_for_row(_ A: UnsafeMutableRawPointer!, _ i: sparse_index) -> Int

Parameters

  • A:

    The sparse matrix object.

  • i:

    The zero based index of the row to query.

Return Value

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

Discussion

See Also

General Sparse Matrix Management Operations