julia> using Pkg: Pkg
julia> Pkg.add(url="https://github.com/ITensor/SparseArraysBaseNext.jl")
using SparseArraysBaseNext:
SparseArrayDOK, eachstoredindex, isstored, storedlength, storedvalues
a = SparseArrayDOK{Float64}(2, 2)
a[1, 2] = 12
@show a[1, 1]
@show a[1, 2]
b = a .+ 2 .* a'
@show storedvalues(b)
@show eachstoredindex(b)
@show isstored(b, 1, 1)
@show isstored(b, 2, 1)
@show isstored(b, 1, 2)
@show isstored(b, 2, 2)
@show storedlength(b)
This page was generated using Literate.jl.