Commit 0c2b44c
This builds on JuliaLang/LinearAlgebra.jl#1534.
One issue with this would be that direct uses of
`SparseArrays.nonzeroinds` would lead to warnings:
```julia
julia> s = sparsevec([2, 6], [2,3])
6-element SparseVector{Int64, Int64} with 2 stored entries:
[2] = 2
[6] = 3
julia> SparseArrays.nonzeroinds(s)
[ Warning: nonzeroinds is defined in LinearAlgebra and is not public in SparseArrays
2-element Vector{Int64}:
2
6
```
This may be remedied by making the function public, but then this had
not been declared as `public` anyway.
The other alternative might be to retain the function in `SparseArrays`
and just add a method to the one from `LinearAlgebra`, as in the PR
linked above.
Co-authored-by: Mateus Araújo <maltusan@gmail.com>
1 parent 40d5de2 commit 0c2b44c
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
19 | 19 | | |
20 | 20 | | |
21 | 21 | | |
22 | | - | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| |||
0 commit comments