Skip to content

Commit a247038

Browse files
authored
Added tests for rdiv! in LU (#34994)
1 parent 178ac97 commit a247038

File tree

1 file changed

+9
-0
lines changed
  • stdlib/LinearAlgebra/test

1 file changed

+9
-0
lines changed

stdlib/LinearAlgebra/test/lu.jl

+9
Original file line numberDiff line numberDiff line change
@@ -345,4 +345,13 @@ end
345345
@test F.p == []
346346
end
347347

348+
@testset "more rdiv! methods" begin
349+
for elty in (Float16, Float64, ComplexF64), transform in (transpose, adjoint)
350+
A = randn(elty, 5, 5)
351+
C = copy(A)
352+
B = randn(elty, 5, 5)
353+
@test rdiv!(transform(A), transform(lu(B))) transform(C) / transform(B)
354+
end
355+
end
356+
348357
end # module TestLU

0 commit comments

Comments
 (0)