Skip to content

Commit 9015413

Browse files
committed
fix BlockArray-related tests
1 parent c0a6762 commit 9015413

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/nontradaxes.jl

+8-8
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ using Test, LinearMaps, LinearAlgebra, BlockArrays
33
@testset "Non-traditional axes" begin
44

55
A = rand(ComplexF64,2,4)
6-
B = PseudoBlockMatrix{ComplexF64}(undef, [2,3], [3,4])
6+
B = BlockMatrix{ComplexF64}(undef, [2,3], [3,4])
77

88
ax1 = axes(B)[1]
99
ax2 = axes(B)[2]
@@ -19,7 +19,7 @@ using Test, LinearMaps, LinearAlgebra, BlockArrays
1919
@test eltype(N) == eltype(B)
2020

2121
u = similar(Array{ComplexF64}, ax2)
22-
v = PseudoBlockVector{ComplexF64}(undef, [3,5])
22+
v = BlockVector{ComplexF64}(undef, [3,5])
2323
w = similar(Array{ComplexF64}, ax1)
2424

2525
for i in eachindex(u) u[i] = rand(ComplexF64) end
@@ -54,7 +54,7 @@ using Test, LinearMaps, LinearAlgebra, BlockArrays
5454
@test blocklengths(axes(C)[1]) == blocklengths(ax1)
5555

5656
A = rand(ComplexF64,2,2)
57-
B = PseudoBlockMatrix{ComplexF64}(undef, [2,2], [2,2])
57+
B = BlockMatrix{ComplexF64}(undef, [2,2], [2,2])
5858
ax1 = axes(B)[1]
5959
ax2 = axes(B)[2]
6060
fill!(B,0)
@@ -75,12 +75,12 @@ using Test, LinearMaps, LinearAlgebra, BlockArrays
7575
D2 = rand(5,3)
7676
D3 = rand(3,6)
7777
D4 = rand(6,6)
78-
A1 = PseudoBlockMatrix(D1, [1,3], [2,3])
79-
A2 = PseudoBlockMatrix(D2, [2,3], [2,1])
80-
A3 = PseudoBlockMatrix(D3, [2,1], [3,2,1])
81-
A4 = PseudoBlockMatrix(D4, [3,2,1], [3,2,1])
78+
A1 = BlockMatrix(D1, [1,3], [2,3])
79+
A2 = BlockMatrix(D2, [2,3], [2,1])
80+
A3 = BlockMatrix(D3, [2,1], [3,2,1])
81+
A4 = BlockMatrix(D4, [3,2,1], [3,2,1])
8282
u = rand(6)
83-
x = PseudoBlockVector(u, [3,2,1])
83+
x = BlockVector(u, [3,2,1])
8484
L = LinearMap(A1) * LinearMap(A2) * LinearMap(A3) * LinearMap(A4)
8585
y = L * x
8686
v = Vector(y)

0 commit comments

Comments
 (0)