-
Couldn't load subscription status.
- Fork 64
Open
Description
Calling reverse on a sparse array introduces structural nonzeros. Here's a minimal example
julia> a = SparseMatrixCSC(2, 2, [1,3,4], [1,2,1], [1,1,1])
2×2 SparseMatrixCSC{Int64, Int64} with 3 stored entries:
1 1
1 ⋅
julia> reverse(a,dims=:)
2×2 SparseMatrixCSC{Int64, Int64} with 4 stored entries:
0 1
1 1
julia> reverse(a,dims=1)
2×2 SparseMatrixCSC{Int64, Int64} with 4 stored entries:
1 0
1 1
julia> reverse(a,dims=2)
2×2 SparseMatrixCSC{Int64, Int64} with 4 stored entries:
1 1
0 1
Metadata
Metadata
Assignees
Labels
No labels