@@ -40,7 +40,7 @@ julia> Pkg.add("BlockSparseArrays")
4040# ## Examples
4141
4242using BlockArrays: BlockArrays, BlockedVector, Block, blockedrange
43- using BlockSparseArrays: BlockSparseArray, blockstoredlength
43+ using BlockSparseArrays: BlockSparseArray, blockstoredlength, sparsemortar
4444using Test: @test , @test_broken
4545
4646function main ()
@@ -65,13 +65,13 @@ function main()
6565 reshape (@view (d_data[Block (i)]), block_size (i_axes, nz_blocks[i])) for
6666 i in 1 : length (nz_blocks)
6767 ]
68- b = BlockSparseArray (nz_blocks, d_blocks, i_axes)
68+ b = sparsemortar (nz_blocks, d_blocks, i_axes)
6969
7070 @test blockstoredlength (b) == 2
7171
7272 # # Blocks with discontiguous underlying data
7373 d_blocks = randn .(nz_block_sizes)
74- b = BlockSparseArray (nz_blocks, d_blocks, i_axes)
74+ b = sparsemortar (nz_blocks, d_blocks, i_axes)
7575
7676 @test blockstoredlength (b) == 2
7777
@@ -117,7 +117,7 @@ using BlockSparseArrays: BlockSparseArray
117117
118118i1 = [2 , 3 ]
119119i2 = [2 , 3 ]
120- B = BlockSparseArray {Float64} (i1, i2)
120+ B = BlockSparseArray {Float64} (undef, i1, i2)
121121B[Block (1 , 1 )] = randn (2 , 2 )
122122B[Block (2 , 2 )] = randn (3 , 3 )
123123
0 commit comments