Skip to content
This repository was archived by the owner on Mar 12, 2021. It is now read-only.

Commit bad8412

Browse files
add ldiv! test
1 parent eb2fb9c commit bad8412

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

test/solver.jl

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,20 @@ k = 1
131131
F = qr!(A)
132132
@test h_B B*Array(F.Q)
133133
end
134+
135+
@testset "ldiv!" begin
136+
A = rand(elty, n, n)
137+
d_A = CuArray(A)
138+
B = rand(elty, n, n)
139+
d_B = CuArray(B)
140+
C = rand(elty, n, n)
141+
d_C = CuArray(C)
142+
F = qr!(A)
143+
d_F = qr!(d_A)
144+
ldiv!(C,F,B)
145+
ldiv!(d_C,d_F,d_B)
146+
@test C Array(d_C)
147+
end
134148

135149
@testset "orgqr!" begin
136150
A = rand(elty,n,m)

0 commit comments

Comments
 (0)