Skip to content

Commit

Permalink
Add three-term mul tests
Browse files Browse the repository at this point in the history
  • Loading branch information
jishnub committed Apr 25, 2024
1 parent a4e8efc commit d6ce6e5
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -1708,6 +1708,8 @@ end
Ank = rand(T, n, k)
Akn = rand(T, k, n)
Ak = rand(T, k)
onesm = ones(m)
zerosm = zeros(m)

fv = T == Float64 ? T(1.6) : T(1.6, 1.3)

Expand All @@ -1722,9 +1724,17 @@ end

for A in (Akn, Ak)
@test transpose(A)*fillvec transpose(A)*Afillvec
@test transpose(A)*fillmat transpose(A)*Afillmat
AtF = transpose(A)*fillmat
AtM = transpose(A)*Afillmat
@test AtF AtM
@test AtF * Ones(m) AtM * onesm
@test AtF * Zeros(m) AtM * zerosm
@test adjoint(A)*fillvec adjoint(A)*Afillvec
@test adjoint(A)*fillmat adjoint(A)*Afillmat
AadjF = adjoint(A)*fillmat
AadjM = adjoint(A)*Afillmat
@test AadjF AadjM
@test AadjF * Ones(m) AadjM * onesm
@test AadjF * Zeros(m) AadjM * zerosm
end
end

Expand Down

0 comments on commit d6ce6e5

Please sign in to comment.