Skip to content

Commit

Permalink
nonzero_keys returns CartesianIndex
Browse files Browse the repository at this point in the history
  • Loading branch information
lkdvos committed Nov 19, 2024
1 parent d6a4259 commit 63bc908
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tensors/abstractblocktensor/sparsity.jl
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ nonzero_values(t::AbstractBlockTensorMap) = nonzero_values(parent(t))
nonzero_length(t::AbstractBlockTensorMap) = nonzero_length(parent(t))

nonzero_values(A::AbstractArray) = values(A)
nonzero_keys(A::AbstractArray) = keys(A)
nonzero_keys(A::AbstractArray) = eachindex(IndexCartesian(), A)
nonzero_pairs(A::AbstractArray) = pairs(A)
nonzero_length(A::AbstractArray) = length(A)

Expand Down

0 comments on commit 63bc908

Please sign in to comment.