22
33[ ![ Stable] ( https://img.shields.io/badge/docs-stable-blue.svg )] ( https://ITensor.github.io/BlockSparseArrays.jl/stable/ )
44[ ![ Dev] ( https://img.shields.io/badge/docs-dev-blue.svg )] ( https://ITensor.github.io/BlockSparseArrays.jl/dev/ )
5- [ ![ Build Status] ( https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/CI .yml/badge.svg?branch=main )] ( https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/CI .yml?query=branch%3Amain )
5+ [ ![ Build Status] ( https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests .yml/badge.svg?branch=main )] ( https://github.com/ITensor/BlockSparseArrays.jl/actions/workflows/Tests .yml?query=branch%3Amain )
66[ ![ Coverage] ( https://codecov.io/gh/ITensor/BlockSparseArrays.jl/branch/main/graph/badge.svg )] ( https://codecov.io/gh/ITensor/BlockSparseArrays.jl )
77[ ![ Code Style: Blue] ( https://img.shields.io/badge/code%20style-blue-4495d1.svg )] ( https://github.com/invenia/BlueStyle )
88[ ![ Aqua] ( https://raw.githubusercontent.com/JuliaTesting/Aqua.jl/master/badge.svg )] ( https://github.com/JuliaTesting/Aqua.jl )
@@ -11,31 +11,31 @@ A block sparse array type in Julia based on the [`BlockArrays.jl`](https://githu
1111
1212## Installation instructions
1313
14+ This package resides in the ` ITensor/ITensorRegistry ` local registry.
15+ In order to install, simply add that registry through your package manager.
16+ This step is only required once.
1417``` julia
1518julia> using Pkg: Pkg
1619
17- julia> Pkg. add (url= " https://github.com/ITensor/BroadcastMapConversion.jl" )
18-
19- julia> Pkg. add (url= " https://github.com/ITensor/NestedPermutedDimsArrays.jl" )
20-
21- julia> Pkg. add (url= " https://github.com/ITensor/TypeParameterAccessors.jl" )
22-
23- julia> Pkg. add (url= " https://github.com/ITensor/LabelledNumbers.jl" )
24-
25- julia> Pkg. add (url= " https://github.com/ITensor/GradedUnitRanges.jl" )
26-
27- julia> Pkg. add (url= " https://github.com/ITensor/SparseArraysBase.jl" )
20+ julia> Pkg. Registry. add (url= " https://github.com/ITensor/ITensorRegistry" )
21+ ```
22+ or:
23+ ``` julia
24+ julia
> Pkg
. Registry
. add (url
= " [email protected] :ITensor/ITensorRegistry.git" )
25+ ```
26+ if you want to use SSH credentials, which can make it so you don't have to enter your Github ursername and password when registering packages.
2827
29- julia > Pkg . add (url = " https://github.com/ITensor/TensorAlgebra.jl " )
28+ Then, the package can be added as usual through the package manager:
3029
31- julia> Pkg. add (url= " https://github.com/ITensor/BlockSparseArrays.jl" )
30+ ``` julia
31+ julia> Pkg. add (" BlockSparseArrays" )
3232```
3333
3434## Examples
3535
3636```` julia
3737using BlockArrays: BlockArrays, BlockedVector, Block, blockedrange
38- using BlockSparseArrays: BlockSparseArray, block_stored_length
38+ using BlockSparseArrays: BlockSparseArray, block_storedlength
3939using Test: @test , @test_broken
4040
4141function main ()
@@ -62,13 +62,13 @@ function main()
6262 ]
6363 b = BlockSparseArray (nz_blocks, d_blocks, i_axes)
6464
65- @test block_stored_length (b) == 2
65+ @test block_storedlength (b) == 2
6666
6767 # Blocks with discontiguous underlying data
6868 d_blocks = randn .(nz_block_sizes)
6969 b = BlockSparseArray (nz_blocks, d_blocks, i_axes)
7070
71- @test block_stored_length (b) == 2
71+ @test block_storedlength (b) == 2
7272
7373 # Access a block
7474 @test b[Block (1 , 1 )] == d_blocks[1 ]
@@ -92,7 +92,7 @@ function main()
9292 @test b + b ≈ Array (b) + Array (b)
9393 @test b + b isa BlockSparseArray
9494 # TODO : Fix this, broken.
95- @test_broken block_stored_length (b + b) == 2
95+ @test_broken block_storedlength (b + b) == 2
9696
9797 scaled_b = 2 b
9898 @test scaled_b ≈ 2 Array (b)
0 commit comments