Skip to content

ITensor/SparseArraysBaseNext.jl

Repository files navigation

SparseArraysBaseNext.jl

Stable Dev Build Status Coverage Code Style: Blue Aqua

Installation instructions

julia> using Pkg: Pkg

julia> Pkg.add(url="https://github.com/ITensor/SparseArraysBaseNext.jl")

Examples

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages