Function

sparse_matrix_destroy(_:)

Releases any memory associated with the matrix object.

Declaration

func sparse_matrix_destroy(_ A: UnsafeMutableRawPointer!) -> sparse_status

Parameters

A

The sparse matrix object.

Return Value

SPARSE_SUCCESS and all memory associated with the matrix object is released.

Discussion

Upon return the matrix, A, is no longer valid and any use of the object is undefined.

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_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.

func sparse_get_matrix_nonzero_count_for_column(UnsafeMutableRawPointer!, sparse_index) -> Int

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