Skip to content

Commit 7570c2c

Browse files
authored
Start adding exports (#25)
1 parent 92ecab0 commit 7570c2c

File tree

3 files changed

+24
-1
lines changed

3 files changed

+24
-1
lines changed

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
name = "BlockSparseArrays"
22
uuid = "2c9a651f-6452-4ace-a6ac-809f4280fbb4"
33
authors = ["ITensor developers <[email protected]> and contributors"]
4-
version = "0.2.5"
4+
version = "0.2.6"
55

66
[deps]
77
Adapt = "79e6a3ab-5dfb-504d-930d-738a2a938a0e"

src/BlockSparseArrays.jl

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
module BlockSparseArrays
2+
3+
export BlockSparseArray,
4+
BlockSparseMatrix,
5+
BlockSparseVector,
6+
blockstoredlength,
7+
eachblockstoredindex,
8+
eachstoredblock
9+
210
include("BlockArraysExtensions/BlockArraysExtensions.jl")
311
include("blocksparsearrayinterface/blocksparsearrayinterface.jl")
412
include("blocksparsearrayinterface/linearalgebra.jl")
@@ -22,4 +30,5 @@ include("abstractblocksparsearray/cat.jl")
2230
include("blocksparsearray/defaults.jl")
2331
include("blocksparsearray/blocksparsearray.jl")
2432
include("BlockArraysSparseArraysBaseExt/BlockArraysSparseArraysBaseExt.jl")
33+
2534
end

test/test_exports.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
using BlockSparseArrays: BlockSparseArrays
2+
using Test: @test, @testset
3+
@testset "Test exports" begin
4+
exports = [
5+
:BlockSparseArrays,
6+
:BlockSparseArray,
7+
:BlockSparseMatrix,
8+
:BlockSparseVector,
9+
:blockstoredlength,
10+
:eachblockstoredindex,
11+
:eachstoredblock,
12+
]
13+
@test issetequal(names(BlockSparseArrays), exports)
14+
end

0 commit comments

Comments
 (0)