Skip to content

Commit

Permalink
Fix typo in docstring of droptol! for sparse vectors (JuliaLang#32955)
Browse files Browse the repository at this point in the history
  • Loading branch information
goggle authored and ViralBShah committed Aug 18, 2019
1 parent 7c99fbf commit 0eeffb1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/SparseArrays/src/sparsevector.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1955,7 +1955,7 @@ end
droptol!(x::SparseVector, tol; trim::Bool = true)
Removes stored values from `x` whose absolute value is less than or equal to `tol`,
optionally trimming resulting excess space from `A.rowval` and `A.nzval` when `trim`
optionally trimming resulting excess space from `x.nzind` and `x.nzval` when `trim`
is `true`.
"""
droptol!(x::SparseVector, tol; trim::Bool = true) = fkeep!(x, (i, x) -> abs(x) > tol, trim)
Expand Down

0 comments on commit 0eeffb1

Please sign in to comment.