22using Test: @test , @testset
33using BlockArrays:
44 AbstractBlockArray, Block, BlockedOneTo, blockedrange, blocklengths, blocksize
5- using BlockSparseArrays: BlockSparseArray, block_stored_length
5+ using BlockSparseArrays: BlockSparseArray, blockstoredlength
66using GradedUnitRanges:
77 GradedUnitRanges,
88 GradedOneTo,
@@ -13,7 +13,7 @@ using GradedUnitRanges:
1313 gradedrange,
1414 isdual
1515using LabelledNumbers: label
16- using SparseArraysBase: stored_length
16+ using SparseArraysBase: storedlength
1717using SymmetrySectors: U1
1818using TensorAlgebra: fusedims, splitdims
1919using LinearAlgebra: adjoint
@@ -40,8 +40,8 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
4040 @test size (b) == (4 , 4 , 4 , 4 )
4141 @test blocksize (b) == (2 , 2 , 2 , 2 )
4242 @test blocklengths .(axes (b)) == ([2 , 2 ], [2 , 2 ], [2 , 2 ], [2 , 2 ])
43- @test stored_length (b) == 32
44- @test block_stored_length (b) == 2
43+ @test storedlength (b) == 32
44+ @test blockstoredlength (b) == 2
4545 for i in 1 : ndims (a)
4646 @test axes (b, i) isa GradedOneTo
4747 end
@@ -58,8 +58,8 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
5858 @test size (b) == (4 , 4 , 4 , 4 )
5959 @test blocksize (b) == (2 , 2 , 2 , 2 )
6060 @test blocklengths .(axes (b)) == ([2 , 2 ], [2 , 2 ], [2 , 2 ], [2 , 2 ])
61- @test stored_length (b) == 256
62- @test block_stored_length (b) == 16
61+ @test storedlength (b) == 256
62+ @test blockstoredlength (b) == 16
6363 for i in 1 : ndims (a)
6464 @test axes (b, i) isa BlockedOneTo{Int}
6565 end
@@ -71,8 +71,8 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
7171 b = a[2 : 3 , 2 : 3 , 2 : 3 , 2 : 3 ]
7272 @test size (b) == (2 , 2 , 2 , 2 )
7373 @test blocksize (b) == (2 , 2 , 2 , 2 )
74- @test stored_length (b) == 2
75- @test block_stored_length (b) == 2
74+ @test storedlength (b) == 2
75+ @test blockstoredlength (b) == 2
7676 for i in 1 : ndims (a)
7777 @test axes (b, i) isa GradedOneTo
7878 end
@@ -156,7 +156,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
156156 a[i] = randn (elt, size (a[i]))
157157 end
158158 b = 2 * a
159- @test block_stored_length (b) == 2
159+ @test blockstoredlength (b) == 2
160160 @test Array (b) == 2 * Array (a)
161161 for i in 1 : 2
162162 @test axes (b, i) isa GradedOneTo
@@ -177,7 +177,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
177177 a[i] = randn (elt, size (a[i]))
178178 end
179179 b = 2 * a
180- @test block_stored_length (b) == 2
180+ @test blockstoredlength (b) == 2
181181 @test Array (b) == 2 * Array (a)
182182 for i in 1 : 2
183183 @test axes (b, i) isa GradedUnitRange
@@ -204,7 +204,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
204204 a[i] = randn (elt, size (a[i]))
205205 end
206206 b = 2 * a
207- @test block_stored_length (b) == 2
207+ @test blockstoredlength (b) == 2
208208 @test Array (b) == 2 * Array (a)
209209 for i in 1 : 2
210210 @test axes (b, i) isa GradedUnitRangeDual
@@ -229,7 +229,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
229229 a[i] = randn (elt, size (a[i]))
230230 end
231231 b = 2 * a
232- @test block_stored_length (b) == 2
232+ @test blockstoredlength (b) == 2
233233 @test Array (b) == 2 * Array (a)
234234 for i in 1 : 2
235235 @test axes (b, i) isa GradedUnitRangeDual
@@ -255,7 +255,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
255255 a[i] = randn (elt, size (a[i]))
256256 end
257257 b = 2 * a
258- @test block_stored_length (b) == 2
258+ @test blockstoredlength (b) == 2
259259 @test Array (b) == 2 * Array (a)
260260 @test a[:, :] isa BlockSparseArray
261261 for i in 1 : 2
@@ -280,7 +280,7 @@ const elts = (Float32, Float64, Complex{Float32}, Complex{Float64})
280280 a[i] = randn (elt, size (a[i]))
281281 end
282282 b = 2 * a'
283- @test block_stored_length (b) == 2
283+ @test blockstoredlength (b) == 2
284284 @test Array (b) == 2 * Array (a)'
285285 for ax in axes (b)
286286 @test ax isa typeof (dual (r))
0 commit comments