Skip to content

Commit cbb8639

Browse files
krcoolsdkarrasch
authored andcommitted
test mul for composite maps over non-traditional axes
1 parent f20676d commit cbb8639

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/nontradaxes.jl

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,4 +70,17 @@ using Test, LinearMaps, LinearAlgebra, BlockArrays
7070
B2u = B2*u; L2u = L2*u
7171
@test axes(B2u)[1] == axes(L2u)[1] == axes(B2)[1] == axes(L2)[1]
7272
@test blocklengths(axes(B2u)[1]) == blocklengths(axes(L2u)[1]) == [2,2]
73+
74+
D1 = rand(4,5)
75+
D2 = rand(5,3)
76+
D3 = rand(3,6)
77+
A1 = PseudoBlockMatrix(D1, [1,3], [2,3])
78+
A2 = PseudoBlockMatrix(D2, [2,3], [2,1])
79+
A3 = PseudoBlockMatrix(D3, [2,1], [3,2,1])
80+
u = rand(6)
81+
x = PseudoBlockVector(u, [3,2,1])
82+
L = LinearMap(A1) * LinearMap(A2) * LinearMap(A3)
83+
y = L * x
84+
v = Vector(y)
85+
@test v D1*(D2*(D3*u))
7386
end

0 commit comments

Comments
 (0)