From 2278a42dc3c311bc8582b655b5be3f017dd003d6 Mon Sep 17 00:00:00 2001 From: "Steven G. Johnson" Date: Fri, 28 Nov 2025 14:32:15 -0500 Subject: [PATCH] Hessenberg \ and / should call ldiv! and rdiv! --- test/hessenberg.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/hessenberg.jl b/test/hessenberg.jl index 5b61c798..ab85f25c 100644 --- a/test/hessenberg.jl +++ b/test/hessenberg.jl @@ -71,8 +71,8 @@ let n = 10 @test Array(Hc - H) == Array(Hc) - Array(H) @testset "ldiv and rdiv" begin for b in (b_, B_), H in (H, Hc, H', Hc', transpose(Hc)) - @test H * (H \ b) ≈ b - @test (b' / H) * H ≈ (Matrix(b') / H) * H ≈ b' + @test H * (H \ b) ≈ H * ldiv!(H, copy(b)) ≈ b + @test (b' / H) * H ≈ (Matrix(b') / H) * H ≈ rdiv!(copy(b'), H) * H ≈ b' @test (transpose(b) / H) * H ≈ (Matrix(transpose(b)) / H) * H ≈ transpose(b) end end