Skip to content

Commit 8a66560

Browse files
authored
Update index.md (#36912)
`nnz` counts the number of elements stored in the `SparseMatrixCSC`. "Structural nonzeros" is a tautology.
1 parent c593e1f commit 8a66560

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/SparseArrays/docs/src/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ In some applications, it is convenient to store explicit zero values in a `Spars
4444
*are* accepted by functions in `Base` (but there is no guarantee that they will be preserved in
4545
mutating operations). Such explicitly stored zeros are treated as structural nonzeros by many
4646
routines. The [`nnz`](@ref) function returns the number of elements explicitly stored in the
47-
sparse data structure, including structural nonzeros. In order to count the exact number of
47+
sparse data structure, including non-structural zeros. In order to count the exact number of
4848
numerical nonzeros, use [`count(!iszero, x)`](@ref), which inspects every stored element of a sparse
4949
matrix. [`dropzeros`](@ref), and the in-place [`dropzeros!`](@ref), can be used to
5050
remove stored zeros from the sparse matrix.

0 commit comments

Comments
 (0)